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 04:36:13 +0300
committerGitHub <noreply@github.com>2019-08-19 04:36:13 +0300
commitdc01dcaceedafbe7ea3a717be798c6dcade1cc78 (patch)
treee225b40eea2f9825f4a4570697addcc3a017e03b
parent441dd1eabbe566f313dd56e4eabd5829ec2985a6 (diff)
Revert "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 c500765..c1a00bb 100644
--- a/layouts/index.html
+++ b/layouts/index.html
@@ -4,7 +4,7 @@
{{ define "content" }}
<div class="post-list">
- {{ $paginator := .Paginate (where .Data.Pages "Type" "posts") }}
+ {{ $paginator := .Paginate (where .Site.RegularPages "Type" "in" site.Params.mainSections) }}
{{ range $paginator.Pages }}
{{ if .Draft }}
{{ .Scratch.Set "draftPage" true }}