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

github.com/htr3n/hyde-hyde.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHuy Tran <hoang.huy.tran@gmail.com>2019-08-19 03:55:14 +0300
committerGitHub <noreply@github.com>2019-08-19 03:55:14 +0300
commit1f66b6a8302b68049d4385c54d9cd014385d5500 (patch)
tree859dfd2e2e1448384f3fbf804e21880bf67bb6a0
parent19b2178a4133b8616def7c8617e909e18d347789 (diff)
Revert "Adjusted post list for Hugo v0.57.0"
-rw-r--r--layouts/index.html2
1 files changed, 1 insertions, 1 deletions
diff --git a/layouts/index.html b/layouts/index.html
index c1a00bb..c500765 100644
--- a/layouts/index.html
+++ b/layouts/index.html
@@ -4,7 +4,7 @@
{{ define "content" }}
<div class="post-list">
- {{ $paginator := .Paginate (where .Site.RegularPages "Type" "in" site.Params.mainSections) }}
+ {{ $paginator := .Paginate (where .Data.Pages "Type" "posts") }}
{{ range $paginator.Pages }}
{{ if .Draft }}
{{ .Scratch.Set "draftPage" true }}