From 25bbf4378fa039ca5fe7b6a24e0acee6a687f260 Mon Sep 17 00:00:00 2001 From: Joel M <37597170+Leoj03@users.noreply.github.com> Date: Tue, 29 Oct 2019 03:46:41 -0500 Subject: [PATCH] Fix index.html for Hugo 0.57.0 (#227) In Hugo 0.57.0, a change was made that caused this theme to incorrectly render the recent posts. More information can be found [here](https://github.com/gohugoio/hugoThemes/issues/682). This edit should fix that error. It has been tested on a live site and it works. --- layouts/partials/recent_posts.html | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/layouts/partials/recent_posts.html b/layouts/partials/recent_posts.html index 1ea6cc638..5abe5532e 100644 --- a/layouts/partials/recent_posts.html +++ b/layouts/partials/recent_posts.html @@ -15,8 +15,7 @@

{{ .Site.Params.recent_posts.title }}

- - {{ $posts := .Paginate (where .Site.RegularPages "Type" "blog") }} + {{ $posts := .Paginate (where site.RegularPages "Type" "in" site.Params.mainSections) }} {{ range first 4 $posts.Pages }}