From aaeaad54409379791149aa41179b1ec726e8d81b Mon Sep 17 00:00:00 2001 From: Nicolas Martignoni Date: Fri, 16 Aug 2019 10:32:30 +0200 Subject: [PATCH] Fix layout files using mainSections - See comment https://github.com/gohugoio/hugoThemes/issues/678#issuecomment-521755843. --- layouts/index.html | 2 +- layouts/partials/widgets/recent.html | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/layouts/index.html b/layouts/index.html index 270c0e7..83654c3 100644 --- a/layouts/index.html +++ b/layouts/index.html @@ -9,7 +9,7 @@ {{ define "main" }} - {{ $paginator := .Paginate (where .Site.RegularPages "Type" "posts") }} + {{ $paginator := .Paginate (where .Site.RegularPages "Type" "in" site.Params.mainSections) }} {{ range $paginator.Pages }} {{- partial "page-summary" . -}} {{ end }} diff --git a/layouts/partials/widgets/recent.html b/layouts/partials/widgets/recent.html index e19345e..c10a6d0 100644 --- a/layouts/partials/widgets/recent.html +++ b/layouts/partials/widgets/recent.html @@ -2,7 +2,7 @@

{{ i18n "recentPosts" }}