29 lines
889 B
HTML
29 lines
889 B
HTML
|
{{ 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 }}
|
||
|
<article class="message mt-5 mb-2">
|
||
|
<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 }}
|