add hidden page param #124

This commit is contained in:
Dmitry Kolosov 2021-12-23 21:56:08 +03:00
parent 0b15d3bc48
commit 0c92c7b71a
8 changed files with 48 additions and 7 deletions

View file

@ -4,7 +4,7 @@
</div>
<div class="articles h-feed">
{{ $pages := where site.RegularPages "Type" "in" site.Params.mainSections }}
{{ $pages := where (where site.RegularPages "Type" "in" site.Params.mainSections) "Params.hidden" "!=" true }}
{{ range (.Paginate $pages).Pages }}
{{ partial "post-summary.html" . }}
{{ end }}