mirror of
https://github.com/adityatelange/hugo-PaperMod.git
synced 2025-05-24 19:54:23 -04:00
feat: if site param has show all pages in home option, then home render all pages
This commit is contained in:
parent
3f50861a0c
commit
d3662c112e
1 changed files with 5 additions and 0 deletions
|
@ -42,6 +42,11 @@
|
|||
|
||||
{{- if .IsHome }}
|
||||
{{- $pages = where site.RegularPages "Type" "in" site.Params.mainSections }}
|
||||
|
||||
{{- if site.Params.ShowAllPagesInHome }}
|
||||
{{- $pages = site.RegularPages }}
|
||||
{{- end }}
|
||||
|
||||
{{- $pages = where $pages "Params.hiddenInHomeList" "!=" "true" }}
|
||||
{{- end }}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue