added homeHidden param

This commit is contained in:
Jake Hillion 2022-03-22 13:19:15 +00:00
parent 375155061d
commit db1f803d82

View File

@ -27,7 +27,7 @@
{{- $pages := union .RegularPages .Sections }}
{{- if .IsHome }}
{{- $pages = where site.RegularPages "Type" "in" site.Params.mainSections }}
{{- $pages = where (where site.RegularPages "Type" "in" site.Params.mainSections) "Params.homeHidden" "!=" true }}
{{- end }}
{{- $paginator := .Paginate $pages }}