diff --git a/themes/chosto/layouts/_default/list.html b/themes/chosto/layouts/_default/list.html index a23a6e9..c333bd8 100644 --- a/themes/chosto/layouts/_default/list.html +++ b/themes/chosto/layouts/_default/list.html @@ -9,7 +9,9 @@ {{ end }}
- {{ range .Paginator.Pages }} + + {{ $paginator := .Paginate (where .Site.RegularPages "FirstSection.Section" "posts") }} + {{ range $paginator.Pages }} {{ if (eq .FirstSection.Section "posts")}}
{{ .Render "summary" }} @@ -17,7 +19,7 @@ {{ end }} {{ end }}
- {{- partial "pagination.html" . -}} + {{- partial "pagination.html" $paginator -}}
{{ end }} diff --git a/themes/chosto/layouts/partials/pagination.html b/themes/chosto/layouts/partials/pagination.html index 8f1455b..8f3ca51 100644 --- a/themes/chosto/layouts/partials/pagination.html +++ b/themes/chosto/layouts/partials/pagination.html @@ -1,4 +1,4 @@ -{{ $pag := $.Paginator }} +{{ $pag := . }} {{ if gt $pag.TotalPages 1 -}}