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

@@ -5,7 +5,8 @@
</div>
{{ end }}
<div class="posts">
{{ range .Paginator.Pages }}
{{ $paginator := .Paginate ( (.Pages | symdiff (where .Pages "Params.hiddenPage" "==" "true")) | symdiff (where .Pages "Params.hiddenPage" true) ) }}
{{ range $paginator.Pages }}
<article class="post on-list">
<h1 class="post-title">
<a href="{{ .Permalink }}">{{ .Title | markdownify }}</a>