Files
paige-hugo/layouts/partials/paige-pages.html
2022-12-13 22:08:04 -08:00

23 lines
607 B
HTML

{{ if .Pages }}
<section>
{{ $p := .Paginate (.Pages.ByDate.Reverse.GroupByDate "January 2006") }}
{{ range $p.PageGroups }}
<h5 class="text-center">{{ .Key }}</h5>
{{ range .Pages }}
<p class="text-center">
<a href="{{ .RelPermalink }}">{{ .Title | markdownify }}</a>
{{ with .Description }}
<br>
{{ . | markdownify }}
{{ end }}
</p>
{{ end }}
{{ end }}
{{ if or $p.HasPrev $p.HasNext }}
<div class="d-flex justify-content-center">
{{ partial "paige-pagination.html" . }}
</div>
{{ end }}
</section>
{{ end }}