Skip to content

Commit

Permalink
Fix index.html for Hugo 0.57.0 (#227)
Browse files Browse the repository at this point in the history
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](gohugoio/hugoThemes#682).  This edit should fix that error.  It has been tested on a live site and it works.
  • Loading branch information
Leoj03 authored and ryanfox1985 committed Oct 29, 2019
1 parent d809b61 commit 25bbf43
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions layouts/partials/recent_posts.html
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,7 @@ <h2>{{ .Site.Params.recent_posts.title }}</h2>
<!-- *** 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">
Expand Down

0 comments on commit 25bbf43

Please # to comment.