diff options
author | zwbetz <zwbetz@gmail.com> | 2019-08-16 23:39:41 +0300 |
---|---|---|
committer | zwbetz <zwbetz@gmail.com> | 2019-08-16 23:39:41 +0300 |
commit | 276b73d7cf1f4006c8ff1152c9f37a64a9ca8625 (patch) | |
tree | b9807842f95a6eeb779efaa71d9328a60ffdde8c | |
parent | aa4fc0d6ca9aedc0d89fa7730e00dd5529d5307c (diff) |
fix issue per https://github.com/gohugoio/hugoThemes/issues/682
-rw-r--r-- | layouts/partials/blog-post-list.html | 2 |
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 }}
|