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