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:46:46 +0300
committerGitHub <noreply@github.com>2019-08-19 03:46:46 +0300
commit19b2178a4133b8616def7c8617e909e18d347789 (patch)
treee225b40eea2f9825f4a4570697addcc3a017e03b
parent4e155a4bf1b5efe9fa8cdf77f02c7d05af9591ca (diff)
parent350fe18188c01564ca83bd8e500b7837fcae0e3d (diff)
Merge pull request #81 from jvalecillos/patch/post-list-hugo-v0.57.0
This should fix the issue with Hugo's breaking changes since v0.57 as mentioned in https://github.com/gohugoio/hugoThemes/issues/678. - adjusted post list for Hugo v0.57.0 Credits: @jvalecillos.
-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 }}