add hiddenPage param

with this param set to true, every effort is made to make the page 'undiscoverable'
This commit is contained in:
Aniket Teredesai
2023-04-07 13:49:54 +05:30
parent cf94a9976d
commit 6e1b938d43
7 changed files with 15 additions and 10 deletions

View File

@@ -12,7 +12,8 @@
{{ if .IsHome }}
{{ $PageContext = .Site }}
{{ end }}
{{ $paginator := .Paginate (where $PageContext.RegularPages "Type" $contentTypeName) }}
{{ $pages := where $PageContext.RegularPages "Type" $contentTypeName }}
{{ $paginator := .Paginate ( ( $pages | symdiff (where $pages "Params.hiddenPage" "==" "true")) | symdiff (where $pages "Params.hiddenPage" "==" true) ) }}
{{ range $paginator.Pages }}
<article class="post on-list">