Added page variable to hide page from section lists (analogous to
hiddenInHomeList but for sections).
This commit is contained in:
parent
804a8682f3
commit
3387d621a0
@ -43,6 +43,8 @@
|
||||
{{- if .IsHome }}
|
||||
{{- $pages = where site.RegularPages "Type" "in" site.Params.mainSections }}
|
||||
{{- $pages = where $pages "Params.hiddenInHomeList" "!=" "true" }}
|
||||
{{- else }}
|
||||
{{- $pages := where $pages "Params.hiddenInSectionList" "!=" "true" }}
|
||||
{{- end }}
|
||||
|
||||
{{- $paginator := .Paginate $pages }}
|
||||
|
Loading…
x
Reference in New Issue
Block a user