From dbe277b728e38a06893ab7b2a53999c4ada2eb34 Mon Sep 17 00:00:00 2001 From: "roneo.org" Date: Wed, 5 Jan 2022 08:06:10 +0100 Subject: [PATCH] offTheRecord: exclude posts from the lists --- 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 f4ff6eca..095b5e9a 100644 --- a/layouts/_default/list.html +++ b/layouts/_default/list.html @@ -27,7 +27,7 @@ {{- $pages := union .RegularPages .Sections }} {{- if .IsHome }} -{{- $pages = where site.RegularPages "Type" "in" site.Params.mainSections }} +{{- $pages = where ( where site.RegularPages "Type" "in" site.Params.mainSections ) ".Params.offTheRecord" "!=" true }} {{- end }} {{- $paginator := .Paginate $pages }}