From 0b0d31fcd73a0e5d86989451d447e78a0165b6ea Mon Sep 17 00:00:00 2001 From: Rick Cogley Date: Mon, 30 Sep 2019 15:27:32 +0900 Subject: [PATCH] Paginator now requires .Site.RegularPages Thanks @onedrawingperday https://github.com/gohugoio/hugoThemes/issues/682 Signed-off-by: Rick Cogley --- layouts/index.html | 13 +++++-------- 1 file changed, 5 insertions(+), 8 deletions(-) diff --git a/layouts/index.html b/layouts/index.html index f934312..05f86c7 100644 --- a/layouts/index.html +++ b/layouts/index.html @@ -6,12 +6,10 @@

Welcome

{{ .Content }}
- {{ $paginator := .Paginate (where .Pages "Type" "posts") }} - {{$paginator.TotalPages}} - - {{ template "_internal/pagination.html" . }} + {{ $paginator := .Paginate (where .Site.RegularPages "Type" "posts") }} + {{ partial "pagination.html" . }}
- {{ range $paginator.Pages.GroupByDate "02 Jan 2006" }} + {{ range ($paginator.Pages.GroupByDate "02 Jan 2006") }}
@@ -24,7 +22,7 @@

{{ .Key }}

{{ end }}
- {{ range $paginator.Pages }} + {{ range .Pages }}
{{ end }}
- - {{ template "_internal/pagination.html" . }} + {{ partial "pagination.html" . }}