From 3387d621a02a9707afc7d27188d46ca23bc79865 Mon Sep 17 00:00:00 2001 From: Aaron Isotton Date: Fri, 14 Jul 2023 14:57:19 -0600 Subject: [PATCH] Added page variable to hide page from section lists (analogous to hiddenInHomeList but for sections). --- layouts/_default/list.html | 2 ++ 1 file changed, 2 insertions(+) diff --git a/layouts/_default/list.html b/layouts/_default/list.html index 9c5bc54..c562e1a 100644 --- a/layouts/_default/list.html +++ b/layouts/_default/list.html @@ -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 }}