Skip to content
This repository has been archived by the owner on Apr 18, 2022. It is now read-only.

Commit

Permalink
Fix homepage for Hugo v0.57.0+
Browse files Browse the repository at this point in the history
Closes #24
  • Loading branch information
htdvisser committed Aug 16, 2019
1 parent 785529b commit 861b48a
Show file tree
Hide file tree
Showing 3 changed files with 1 addition and 1 deletion.
Binary file modified images/screenshot.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified images/tn.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
2 changes: 1 addition & 1 deletion layouts/partials/homepage.html
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@

<h1 class="headline">Recent Posts</h1>

{{ $paginator := .Paginate (where .Data.Pages "Section" "post") (or .Site.Params.paginate 3) }}
{{ $paginator := .Paginate (where .Site.RegularPages "Section" "post") (or .Site.Params.paginate 3) }}
<div class="article-list">
{{ range $paginator.Pages }}
{{ partial "article-list-item.html" . }}
Expand Down

0 comments on commit 861b48a

Please # to comment.