How can I exclude multiple sections?

{{ range first 24 (where .Site.RegularPages "Section" "!=" "community") | shuffle }}
{{end}}

How can I != multiple sections? I can’t figure out the sytax of where and

For example:

{{ range first 24 (where .Site.RegularPages "Section" "!=" "community") and (where .Site.RegularPages "Section" "!=" "faq" | shuffle }}
{{end}}

{{ range first 24 (where .Site.RegularPages "Section" "not in" (slice "faq" "community")) | shuffle }}

I see. This is how you give it an array, using slice.

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