diff options
author | Joel M <37597170+Leoj03@users.noreply.github.com> | 2019-10-29 11:46:41 +0300 |
---|---|---|
committer | Guillermo Guerrero Ibarra <wolf.fox1985@gmail.com> | 2019-10-29 11:46:41 +0300 |
commit | 25bbf4378fa039ca5fe7b6a24e0acee6a687f260 (patch) | |
tree | d00b87e517cb9c37941f0d672f25241008e97403 | |
parent | d809b617f8cdf31d49691b26d82e1b1d7fdcb01e (diff) |
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.
-rw-r--r-- | layouts/partials/recent_posts.html | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/layouts/partials/recent_posts.html b/layouts/partials/recent_posts.html index 1ea6cc6..5abe553 100644 --- a/layouts/partials/recent_posts.html +++ b/layouts/partials/recent_posts.html @@ -15,8 +15,7 @@ <!-- *** BLOG HOMEPAGE *** --> <div class="row"> - - {{ $posts := .Paginate (where .Site.RegularPages "Type" "blog") }} + {{ $posts := .Paginate (where site.RegularPages "Type" "in" site.Params.mainSections) }} {{ range first 4 $posts.Pages }} <div class="col-md-3 col-sm-6"> <div class="box-image-text blog"> |