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

github.com/zwbetz-gh/cayman-hugo-theme.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorzwbetz <zwbetz@gmail.com>2019-08-16 23:39:41 +0300
committerzwbetz <zwbetz@gmail.com>2019-08-16 23:39:41 +0300
commit276b73d7cf1f4006c8ff1152c9f37a64a9ca8625 (patch)
treeb9807842f95a6eeb779efaa71d9328a60ffdde8c
parentaa4fc0d6ca9aedc0d89fa7730e00dd5529d5307c (diff)
fix issue per https://github.com/gohugoio/hugoThemes/issues/682
-rw-r--r--layouts/partials/blog-post-list.html2
1 files changed, 1 insertions, 1 deletions
diff --git a/layouts/partials/blog-post-list.html b/layouts/partials/blog-post-list.html
index 954becf..afc39fd 100644
--- a/layouts/partials/blog-post-list.html
+++ b/layouts/partials/blog-post-list.html
@@ -1,6 +1,6 @@
<h1>{{ .Title }}</h1>
<ul>
-{{ range where .Pages.ByPublishDate.Reverse "Section" "post" }}
+{{ range where site.RegularPages "Type" "in" site.Params.mainSections }}
<li>
{{ $dateFormat := $.Site.Params.dateFormat | default "Jan 2, 2006" }}
{{ .PublishDate.Format $dateFormat }}