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

27 lines
911 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") which
are already written (avoid "incoming" posts of thematic series),
ordered from newest to oldest */}}
{{ $paginator := .Paginate
(where
(where site.RegularPages ".Type" "in" site.Params.mainSections)
".Params.incoming" "!=" true)
}}
{{ range $paginator.Pages }}
<div class="column is-variable is-one-third">
{{ .Render "summary" }}
</div>
{{ end }}
</div>
{{- partial "pagination.html" $paginator -}}
</main>
</div>
2021-05-25 00:07:23 +02:00
</div>
{{ end }}