Range Where two or more arguments

How would I add two or more arguments to a where function in a range?

{{range last 5 (where .Site.Pages  (and ("Kind" "page") ("Type" "blog"))) }}

Looking for something like this. Documentation is not really clear how to do this.

Nest your where statements:

{{range last 5 where (where .Site.Pages "Kind" "page") "Type" "blog" }}

Note. On phone. Not tested :smiley:

@rdwatters Thanks!

Just needed a extra pair of ()

{{range last 5 (where (where .Site.Pages "Kind" "page") "Type" "blog") }}
1 Like