offTheRecord: exclude posts from the archive page

This commit is contained in:
roneo.org 2022-01-05 08:06:49 +01:00
parent dbe277b728
commit cfea34d152

View File

@ -9,7 +9,7 @@
{{- end }}
</header>
{{- $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 }}