You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

41 lines
967 B
HTML

{{ if .Pages }}
{{ if .Params.paige_show_full_pages }}
{{ $page := . }}
{{ $p := .Paginate .Pages }}
{{ range $p.Pages }}
{{ if .Params.math }}
{{ $page.Scratch.Set "paigelistmath" true }}
{{ end }}
{{ partial "paige-main.html" . }}
{{ end }}
{{ if or $p.HasPrev $p.HasNext }}
<section>
<div class="d-flex justify-content-center">
{{ partial "paige-pagination.html" . }}
</div>
</section>
{{ end }}
{{ else }}
{{ $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 }}
<section>
<div class="d-flex justify-content-center">
{{ partial "paige-pagination.html" . }}
</div>
</section>
{{ end }}
{{ end }}
{{ end }}