From 585c04c211dc9c5f87b6a2ce9a68ab0534a0f85c Mon Sep 17 00:00:00 2001 From: Aaron Isotton Date: Fri, 14 Jul 2023 15:20:16 -0600 Subject: [PATCH] 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. --- layouts/_default/list.html | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/layouts/_default/list.html b/layouts/_default/list.html index 9c5bc54d..ac79f787 100644 --- a/layouts/_default/list.html +++ b/layouts/_default/list.html @@ -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 }}