where not in (Hugo) via jmooring I’ve been pulling my hair out over this for a little while, how do you write where not in in Hugo?
The docs say you can do it but I was never able to make it work.
Shout out to Joe Mooring on the Hugo forums for this solution:
{{ $p1 := where site.RegularPages "Type" "in" site.Params.mainSections }}
{{ $p2 := where $p1 "Params.categories" "intersect" (slice "moments" "thinks") }}
{{ $p := $p1 | complement $p2 }}