diff options
author | Hylke Visser <git@htdvisser.nl> | 2019-08-16 16:18:47 +0300 |
---|---|---|
committer | Hylke Visser <git@htdvisser.nl> | 2019-08-16 16:18:47 +0300 |
commit | 861b48ad0ff31e9b2bee50f2a87925820daac9f5 (patch) | |
tree | a14ff0b2ee4bcaf5f99be592a11320fe460bfdd4 /layouts | |
parent | 785529ba75e84eeef39936efc0f047417d487925 (diff) |
Fix homepage for Hugo v0.57.0+
Closes #24
Diffstat (limited to 'layouts')
-rw-r--r-- | layouts/partials/homepage.html | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/layouts/partials/homepage.html b/layouts/partials/homepage.html index dafb303..2dcfec7 100644 --- a/layouts/partials/homepage.html +++ b/layouts/partials/homepage.html @@ -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" . }} |