mirror of
https://github.com/adityatelange/hugo-PaperMod.git
synced 2025-10-24 22:22:34 +02:00
offTheRecord: exclude posts from the lists
This commit is contained in:
@@ -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 }}
|
||||
|
||||
Reference in New Issue
Block a user