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

29 lines
895 B
HTML
Raw Normal View History

{{ define "main" }}
<div class="section">
<div class="container is-max-widescreen">
<main>
{{- /* A section _index.md may have a content, describing its theme */}}
{{ with .Content }}
2023-09-02 11:56:33 +02:00
<article class="message mt-5 mb-5">
<div class="message-body content">
{{ . }}
</div>
</article>
{{ end }}
{{- /* Then simply show posts belonging to the section,
but contrary to index and taxonomy, show oldest to newest,
to keep a sense of progression */}}
<div class="columns is-multiline">
{{ $paginator := .Paginate .RegularPagesRecursive.ByDate }}
{{ range $paginator.Pages }}
<div class="column is-variable is-one-third">
{{ .Render "summary" }}
</div>
{{ end }}
</div>
{{- partial "pagination.html" $paginator -}}
</main>
</div>
</div>
{{ end }}