[Solved] Nested "where" filters in a .Pages range statement - using .Scratch variable to offset the range index

@budparr what you proprosed in the other thread works. Nested where’s

{{ range where ( where .Site.RegularPages  "Section" "sections" ) ".Params.hidden" "!=" true }} 

I can take it from here. Thanks for you input and time. I’ll call this solved.

https://discuss.gohugo.io/t/filter-data-pages-based-on-content-subdirectory-without-using-a-page-parameter/6050/5

1 Like