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.
36 lines
942 B
HTML
36 lines
942 B
HTML
{{ if .Pages }}
|
|
{{ if .Params.paige.show_full_pages }}
|
|
{{ $p := .Paginate .Pages }}
|
|
{{ range $p.Pages }}
|
|
{{ .Scratch.Set "paige_show_full_pages" true }}
|
|
{{ partial "paige/article" . }}
|
|
{{ end }}
|
|
{{ if or $p.HasPrev $p.HasNext }}
|
|
<section>
|
|
<div class="d-flex justify-content-center">
|
|
{{ partial "paige/pagination" . }}
|
|
</div>
|
|
</section>
|
|
{{ end }}
|
|
{{ else }}
|
|
{{ $p := .Paginate (.Pages.ByDate.Reverse.GroupByDate "January 2006") }}
|
|
<article>
|
|
{{ 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 }}
|
|
</article>
|
|
{{ if or $p.HasPrev $p.HasNext }}
|
|
<section>
|
|
<div class="d-flex justify-content-center">
|
|
{{ partial "paige/pagination" . }}
|
|
</div>
|
|
</section>
|
|
{{ end }}
|
|
{{ end }}
|
|
{{ end }}
|