Combine multiple 'where' filters?

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

@jmooring Thank you this worked!

1 Like

This topic was automatically closed 2 days after the last reply. New replies are no longer allowed.