2021-05-18 17:07:00 +02:00
|
|
|
{{ define "main" }}
|
2021-05-25 00:07:23 +02:00
|
|
|
<div class="container is-max-widescreen">
|
|
|
|
<main>
|
|
|
|
{{ with .Content }}
|
2021-05-25 17:35:35 +02:00
|
|
|
<article class="message mt-5 mb-2">
|
2021-05-25 00:07:23 +02:00
|
|
|
<div class="message-body">
|
|
|
|
{{ . }}
|
|
|
|
</div>
|
|
|
|
</article>
|
2021-05-23 01:42:17 +02:00
|
|
|
{{ end }}
|
2021-05-25 00:07:23 +02:00
|
|
|
<div class="columns is-multiline is-mobile">
|
2021-05-25 17:15:13 +02:00
|
|
|
<!-- Custom paginator with only blog posts -->
|
|
|
|
{{ $paginator := .Paginate (where .Site.RegularPages "FirstSection.Section" "posts") }}
|
|
|
|
{{ range $paginator.Pages }}
|
2021-05-25 01:29:48 +02:00
|
|
|
{{ if (eq .FirstSection.Section "posts")}}
|
2021-05-25 00:07:23 +02:00
|
|
|
<div class="column is-one-third">
|
|
|
|
{{ .Render "summary" }}
|
|
|
|
</div>
|
|
|
|
{{ end }}
|
2021-05-25 01:29:48 +02:00
|
|
|
{{ end }}
|
2021-05-25 00:07:23 +02:00
|
|
|
</div>
|
2021-05-25 17:15:13 +02:00
|
|
|
{{- partial "pagination.html" $paginator -}}
|
2021-05-25 00:07:23 +02:00
|
|
|
</main>
|
|
|
|
</div>
|
2021-05-18 17:07:00 +02:00
|
|
|
{{ end }}
|