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 | |
parent | 785529ba75e84eeef39936efc0f047417d487925 (diff) |
Fix homepage for Hugo v0.57.0+
Closes #24
-rw-r--r-- | images/screenshot.png | bin | 70718 -> 136700 bytes | |||
-rw-r--r-- | images/tn.png | bin | 107404 -> 69551 bytes | |||
-rw-r--r-- | layouts/partials/homepage.html | 2 |
3 files changed, 1 insertions, 1 deletions
diff --git a/images/screenshot.png b/images/screenshot.png Binary files differindex 1c5fff5..c16777f 100644 --- a/images/screenshot.png +++ b/images/screenshot.png diff --git a/images/tn.png b/images/tn.png Binary files differindex 9ea329a..8e7e54a 100644 --- a/images/tn.png +++ b/images/tn.png 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" . }} |