Fix taxonomies pages

master
Quentin Duchemin 2021-10-15 01:33:46 +02:00
parent 40d0d344db
commit b968355d26
Signed by: Chosto
GPG Key ID: 0547178FEEDE7D6B
1 changed files with 20 additions and 0 deletions

View File

@ -0,0 +1,20 @@
{{ define "main" }}
<div class="section">
<div class="container is-max-widescreen">
<main>
<div class="columns is-multiline">
<!-- Custom paginator with only blog posts -->
{{ $paginator := .Paginator }}
{{ range $paginator.Pages }}
{{ if (eq .FirstSection.Section "posts")}}
<div class="column is-variable is-one-third">
{{ .Render "summary" }}
</div>
{{ end }}
{{ end }}
</div>
{{- partial "pagination.html" $paginator -}}
</main>
</div>
</div>
{{ end }}