Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/htdvisser/hugo-base16-theme.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHylke Visser <git@htdvisser.nl>2019-08-16 16:18:47 +0300
committerHylke Visser <git@htdvisser.nl>2019-08-16 16:18:47 +0300
commit861b48ad0ff31e9b2bee50f2a87925820daac9f5 (patch)
treea14ff0b2ee4bcaf5f99be592a11320fe460bfdd4
parent785529ba75e84eeef39936efc0f047417d487925 (diff)
Fix homepage for Hugo v0.57.0+
Closes #24
-rw-r--r--images/screenshot.pngbin70718 -> 136700 bytes
-rw-r--r--images/tn.pngbin107404 -> 69551 bytes
-rw-r--r--layouts/partials/homepage.html2
3 files changed, 1 insertions, 1 deletions
diff --git a/images/screenshot.png b/images/screenshot.png
index 1c5fff5..c16777f 100644
--- a/images/screenshot.png
+++ b/images/screenshot.png
Binary files differ
diff --git a/images/tn.png b/images/tn.png
index 9ea329a..8e7e54a 100644
--- a/images/tn.png
+++ b/images/tn.png
Binary files differ
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" . }}