From cfea34d1522ee1ea0741f176488456691a88874f Mon Sep 17 00:00:00 2001 From: "roneo.org" Date: Wed, 5 Jan 2022 08:06:49 +0100 Subject: [PATCH] offTheRecord: exclude posts from the archive page --- layouts/_default/archives.html | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/layouts/_default/archives.html b/layouts/_default/archives.html index e400e2c5..d4d6e5bd 100644 --- a/layouts/_default/archives.html +++ b/layouts/_default/archives.html @@ -9,7 +9,7 @@ {{- end }} -{{- $pages := where site.RegularPages "Type" "in" site.Params.mainSections }} +{{- $pages := where ( where site.RegularPages "Type" "in" site.Params.mainSections ) ".Params.offTheRecord" "!=" true }} {{- if site.Params.ShowAllPagesInArchive }} {{- $pages = site.RegularPages }}