From 63d08e42704f161900051fb0fcc0d83aeead4fe3 Mon Sep 17 00:00:00 2001 From: Thibaud Lepretre Date: Thu, 15 Aug 2019 15:23:56 +0200 Subject: [PATCH] Upgrade index.html to support changes from 0.57 see https://github.com/gohugoio/hugoThemes/issues/678 fixes #371 --- layouts/index.html | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/layouts/index.html b/layouts/index.html index f8887d01..0a41340c 100644 --- a/layouts/index.html +++ b/layouts/index.html @@ -9,7 +9,7 @@ {{ if eq .Params.covermeta "out" }}hasCoverMetaOut{{ else }}hasCoverMetaIn{{ end }} {{ with .Params.coverCaption }}hasCoverCaption{{ end }}">
- {{ $paginator := .Paginate (where .Data.Pages "Type" "post") }} + {{ $paginator := .Paginate (where .Site.RegularPages "Type" "post") }} {{ range $paginator.Pages }} {{ .Render "summary" }} {{ end }} @@ -18,4 +18,4 @@ {{ partial "footer.html" . }} -{{ partial "foot.html" . }} \ No newline at end of file +{{ partial "foot.html" . }}