29 lines
797 B
HTML
29 lines
797 B
HTML
|
{{ range .Data.Pages }}
|
||
|
{{if eq .Type "index" }}
|
||
|
<div class="index-content post">
|
||
|
{{.Content}}
|
||
|
</div>
|
||
|
{{end}}
|
||
|
{{ end }}
|
||
|
|
||
|
{{ if not ($.Scratch.Get "paginatedSections") }}
|
||
|
{{ if .Site.Params.paginatedsections }}
|
||
|
{{ $.Scratch.Set "paginatedSections" .Site.Params.paginatedsections }}
|
||
|
{{ else }}
|
||
|
{{ $.Scratch.Set "paginatedSections" "post" }}
|
||
|
{{ end }}
|
||
|
{{ end }}
|
||
|
|
||
|
{{ $list := .Site.RegularPages }}
|
||
|
{{ $paginator := .Paginate ( $list ) }}
|
||
|
|
||
|
<div class="extra-pagination inner">
|
||
|
{{ partial "pagination.html" $paginator }}
|
||
|
</div>
|
||
|
|
||
|
{{ range $index, $page := $paginator.Pages }}
|
||
|
{{ partial "li.html" . }}
|
||
|
{{ end }}
|
||
|
|
||
|
{{ partial "pagination.html" $paginator }}
|