mirror of
https://github.com/adityatelange/hugo-PaperMod.git
synced 2024-12-24 05:55:53 -05:00
Fixed hiddenInHomeList logic to use a boolean.
The previous code would check for the string "true" instead of the boolean true. This made it so that 'hiddenInHomeList: false' would hide a page, instead of showing it. This fixes this by using a boolean.
This commit is contained in:
parent
804a8682f3
commit
585c04c211
@ -42,7 +42,7 @@
|
||||
|
||||
{{- if .IsHome }}
|
||||
{{- $pages = where site.RegularPages "Type" "in" site.Params.mainSections }}
|
||||
{{- $pages = where $pages "Params.hiddenInHomeList" "!=" "true" }}
|
||||
{{- $pages = where $pages "Params.hiddenInHomeList" "!=" true }}
|
||||
{{- end }}
|
||||
|
||||
{{- $paginator := .Paginate $pages }}
|
||||
|
Loading…
Reference in New Issue
Block a user