Simple one here.
I’d like to add a condition and iterate over tags to generate my paginator variable.
The following works:
{{ $paginator := .Paginate (where (where .Site.RegularPages "Type" "in" (slice "archives")).ByDate.Reverse "Params.hidden" "!=" true) 10 }}
{{ range (.Paginator 10).Pages }}
The following doesn’t
{{ $paginator := .Paginate (where (where .Site.RegularPages "Type" "in" (slice "archives")).ByDate.Reverse "Params.hidden" "!=" true (where "Params.tags" "intersect" (slice "emacs"))) 10 }}
{{ range (.Paginator 10).Pages }}
Adding this: (where “Params.tags” “intersect” (slice “emacs”))
causes this: “error calling where: can’t iterate over Params.tags”
Does anyone know the correct syntax to achieve this?