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:
Aaron Isotton 2023-07-14 15:20:16 -06:00
parent 804a8682f3
commit 585c04c211

View file

@ -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 }}