offTheRecord: exclude posts from the lists

This commit is contained in:
roneo.org 2022-01-05 08:06:10 +01:00
parent 363756ffee
commit dbe277b728

View File

@ -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 }}