Avoid listing non-blog pages on listings

master
Quentin Duchemin 2021-05-25 01:29:48 +02:00
parent 0e9e3c01a7
commit 78131aab23
Signed by: Chosto
GPG Key ID: 0547178FEEDE7D6B
1 changed files with 2 additions and 0 deletions

View File

@ -10,10 +10,12 @@
{{ end }}
<div class="columns is-multiline is-mobile">
{{ range .Paginator.Pages }}
{{ if (eq .FirstSection.Section "posts")}}
<div class="column is-one-third">
{{ .Render "summary" }}
</div>
{{ end }}
{{ end }}
</div>
{{- partial "pagination.html" . -}}
</main>