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

26 lines
710 B
HTML
Raw Normal View History

{{ 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>
{{ 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 }}
{{ if (eq .FirstSection.Section "posts")}}
2021-05-25 00:07:23 +02:00
<div class="column is-one-third">
{{ .Render "summary" }}
</div>
{{ end }}
{{ 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>
{{ end }}