2023-06-27 18:01:47 +02:00
|
|
|
{{ define "main" }}
|
|
|
|
<div class="section">
|
|
|
|
<div class="container is-max-widescreen">
|
|
|
|
<main>
|
2023-08-10 15:23:42 +02:00
|
|
|
{{/* A section _index.md may have a content, describing its theme */}}
|
2023-06-27 18:01:47 +02:00
|
|
|
{{ with .Content }}
|
2023-09-02 11:56:33 +02:00
|
|
|
<article class="message mt-5 mb-5">
|
2023-06-27 18:01:47 +02:00
|
|
|
<div class="message-body content">
|
|
|
|
{{ . }}
|
|
|
|
</div>
|
|
|
|
</article>
|
|
|
|
{{ end }}
|
2023-08-10 15:23:42 +02:00
|
|
|
{{/* Then simply show posts belonging to the section,
|
2023-06-27 18:01:47 +02:00
|
|
|
but contrary to index and taxonomy, show oldest to newest,
|
2023-08-10 15:23:42 +02:00
|
|
|
to keep a sense of progression */}}
|
2023-06-27 18:01:47 +02:00
|
|
|
<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 }}
|