blog/themes/chosto/layouts/_default/list.html

24 lines
755 B
HTML
Raw Normal View History

{{ define "main" }}
<!-- Default list used for homepage and taxonomy pages (e.g. tags),
but not for sections (see section.html template) -->
<div class="section pt-5">
<div class="container is-max-widescreen">
<main>
<div class="columns is-multiline">
<!-- Custom paginator with only blog posts (e.g. avoid "À propos"),
ordered from newest to oldest -->
{{ $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>
2021-05-25 00:07:23 +02:00
</div>
{{ end }}