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.
48 lines
1.6 KiB
HTML
48 lines
1.6 KiB
HTML
{{ $page := . }}
|
|
|
|
{{ if $page.Pages }}
|
|
{{ if $page.Param "paige.section_pages.full_pages" }}
|
|
{{ $pager := $page.Paginate $page.Pages }}
|
|
<div id="paige-subpages">
|
|
{{ range $pager.Pages }}
|
|
{{ partial "paige/article.html" (dict "fullpages" true "page" .) }}
|
|
{{ end }}
|
|
</div>
|
|
|
|
{{ if or $pager.HasPrev $pager.HasNext }}
|
|
<div id="paige-pagination">
|
|
<div class="d-flex justify-content-center">
|
|
{{ partial "paige/pagination.html" $page }}
|
|
</div>
|
|
</div>
|
|
{{ end }}
|
|
{{ else }}
|
|
<div id="paige-subpages">
|
|
{{ $pinned := where $page.Pages "Params.paige.pin" true }}
|
|
|
|
{{ range $pinned.ByPublishDate.Reverse }}
|
|
{{ partial "paige/subpage.html" . }}
|
|
{{ end }}
|
|
|
|
{{ $unpinned := complement $pinned $page.Pages }}
|
|
{{ $pagegroups := $unpinned.ByPublishDate.Reverse.GroupByPublishDate "January 2006" }}
|
|
{{ $pager := $page.Paginate $pagegroups }}
|
|
|
|
{{ range $pager.PageGroups }}
|
|
<p class="h5 paige-date-header text-center">{{ .Key }}</p>
|
|
|
|
{{ range .Pages }}
|
|
{{ partial "paige/subpage.html" . }}
|
|
{{ end }}
|
|
{{ end }}
|
|
</div>
|
|
{{ if or $pager.HasPrev $pager.HasNext }}
|
|
<div id="paige-pagination">
|
|
<div class="d-flex justify-content-center">
|
|
{{ partial "paige/pagination.html" $page }}
|
|
</div>
|
|
</div>
|
|
{{ end }}
|
|
{{ end }}
|
|
{{ end }}
|