colin
1
How can I combine two where
filters?
I have the following working code:
{{ $filtersublinks := where .Children ".Params.sublink" "!=" true }}
{{ $filterbloglink := where $filtersublinks ".Params.bloglink" "!=" true }}
{{ range $filterbloglink }}
<li>
....
....
</li>
{{ end }}
I’d like (if possible) to combine the two where
filters into a single statement?
{{ range where (where site.RegularPages "Params.a" "foo") "Params.b" "bar" }}
<a href="{{ .RelPermalink }}">{{ .LinkTitle }}</a>
{{ end }}
2 Likes
colin
3
@jmooring Thank you this worked!
1 Like
system
Closed
4
This topic was automatically closed 2 days after the last reply. New replies are no longer allowed.