This is what I have. I’m trying to show each page’s long_title
param in each menu item, but it’s showing up as empty " "
.
<div class="carousel">
{{ $Site := .Site }}
{{ $currentPage := . }}
{{ range $Site.Menus.main }}
{{ $U := string (.URL | relLangURL) }}
{{ $P := $Site.GetPage $U }}
<div class="swiper-slide {{ if $currentPage.IsMenuCurrent "main" . }}current{{ end }}">
<a href="{{ .URL | relLangURL }}">
<h3>{{ .Name }}</h3>
<blockquote>
{{ $P.Param "long_title" }}
</blockquote>
</a>
</div>
{{ end }}
</div>
I feel like I’m not dealing with .URL
correctly.