2021-05-18 17:07:00 +02:00
|
|
|
{{ define "main" }}
|
2022-11-05 23:12:24 +01:00
|
|
|
<div class="section pt-5">
|
2021-05-26 19:03:43 +02:00
|
|
|
<div class="container is-max-widescreen">
|
|
|
|
<main>
|
|
|
|
{{ with .Content }}
|
|
|
|
<article class="message mt-5 mb-2">
|
2021-05-27 00:26:57 +02:00
|
|
|
<div class="message-body content">
|
2021-05-26 19:03:43 +02:00
|
|
|
{{ . }}
|
|
|
|
</div>
|
|
|
|
</article>
|
2021-05-25 00:07:23 +02:00
|
|
|
{{ end }}
|
2021-05-26 19:03:43 +02:00
|
|
|
<div class="columns is-multiline">
|
|
|
|
<!-- Custom paginator with only blog posts -->
|
2022-11-05 23:12:24 +01:00
|
|
|
<!-- Annoying hackish stuff to only select pages belonging to the current section -->
|
|
|
|
{{ $articlesInSection := slice }}
|
|
|
|
{{ range .Site.RegularPages }}
|
|
|
|
{{ if $.IsAncestor . }}
|
|
|
|
{{ $articlesInSection = $articlesInSection | append . }}
|
|
|
|
{{ end }}
|
|
|
|
{{ end }}
|
|
|
|
{{ $paginator := .Paginate $articlesInSection }}
|
2021-05-26 19:03:43 +02:00
|
|
|
{{ 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>
|
2021-05-18 17:07:00 +02:00
|
|
|
{{ end }}
|