mirror of https://gitlab.com/octtspacc/sitoctt
24 lines
911 B
HTML
24 lines
911 B
HTML
{{ define "main" }}
|
|
<article class="pa3 pa4-ns nested-copy-line-height">
|
|
<section class="cf ph3 ph5-l pv3 pv4-l f4 tc-l center measure-wide lh-copy {{ $.Param "text_color" | default "mid-gray" }}">
|
|
{{- .Content -}}
|
|
</section>
|
|
<section class="flex-ns flex-wrap justify-around mt5">
|
|
{{/* TODO handle sections accounting for the new pager size */}}
|
|
{{ $pages := false }}
|
|
{{ if .Params.PagerSize }}
|
|
{{ $pages = (.Paginate .Pages (or (and (gt .Params.PagerSize 0) .Params.PagerSize) 2147483647)) }}
|
|
{{ else }}
|
|
{{ $pages = (.Paginate .Pages) }}
|
|
{{ end }}
|
|
{{ range $pages.Pages }}
|
|
{{/* range (append .Sections $pages.Pages) */}}
|
|
<div class="relative w-100 w-30-l mb4 bg-white">
|
|
{{ .Render "summary" }}
|
|
</div>
|
|
{{ end }}
|
|
</section>
|
|
{{- template "_internal/pagination.html" . -}}
|
|
</article>
|
|
{{ end }}
|