Nested where not working


#1

Hello !

I’m unable to figure out to make my nested where working, this is my work around :

{{ range where .Site.RegularPages "Section" "products" }}
    {{ if in .Params.tags "HELLO" }}

From the documentation the following code should work but it doesn’t…

{{ range where (where .Site.RegularPages "Section" "products" ) ".Params.tags" "in" "HELLO" }}

Is it me or is it a Bug ?

Thanks for your help.


#2

You need to remove the newlines. That said, I would recomend you also look into the union and intersect func:

You may also want to “upvote” this issue: