Source last question: Range pages by passed params doesn't work
Hi guys, I have this code on my homepage:
{{ partial "spotlight" (dict "categories" "spotlight" ) }}
Now I’d like to create inside the partial a title of the section with the titles of categories passed:
example: Travel & Music
My partial range code is like that:
{{ range where (where site.RegularPages "Section" "posts") "Params.categories" "intersect" . }}
<h2><a href="{{ .RelPermalink }}">{{ .LinkTitle }}</a></h2>
{{ end }}