Added page variable to hide page from section lists (analogous to

hiddenInHomeList but for sections).
This commit is contained in:
Aaron Isotton 2023-07-14 14:57:19 -06:00
parent 804a8682f3
commit 3387d621a0

View File

@ -43,6 +43,8 @@
{{- if .IsHome }} {{- if .IsHome }}
{{- $pages = where site.RegularPages "Type" "in" site.Params.mainSections }} {{- $pages = where site.RegularPages "Type" "in" site.Params.mainSections }}
{{- $pages = where $pages "Params.hiddenInHomeList" "!=" "true" }} {{- $pages = where $pages "Params.hiddenInHomeList" "!=" "true" }}
{{- else }}
{{- $pages := where $pages "Params.hiddenInSectionList" "!=" "true" }}
{{- end }} {{- end }}
{{- $paginator := .Paginate $pages }} {{- $paginator := .Paginate $pages }}