Add section for page list

master
Will Faught 3 years ago
parent a94de4cf1d
commit 1bcf25cf82

@ -1,10 +1,12 @@
{{ if .Pages }} {{ if .Pages }}
{{ if .Params.paige.show_full_pages }} {{ if .Params.paige.show_full_pages }}
{{ $p := .Paginate .Pages }} {{ $p := .Paginate .Pages }}
{{ range $p.Pages }} <section>
{{ .Scratch.Set "paige_show_full_pages" true }} {{ range $p.Pages }}
{{ partial "paige/article" . }} {{ .Scratch.Set "paige_show_full_pages" true }}
{{ end }} {{ partial "paige/article" . }}
{{ end }}
</section>
{{ if or $p.HasPrev $p.HasNext }} {{ if or $p.HasPrev $p.HasNext }}
<section> <section>
<div class="d-flex justify-content-center"> <div class="d-flex justify-content-center">

Loading…
Cancel
Save