From 634920a9807574efc408f945a9f4275d7e33f17e Mon Sep 17 00:00:00 2001 From: zwbetz Date: Fri, 16 Aug 2019 16:06:11 -0500 Subject: fix issue per https://github.com/gohugoio/hugoThemes/issues/682 --- layouts/partials/post-list.html | 3 ++- netlify.toml | 2 +- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/layouts/partials/post-list.html b/layouts/partials/post-list.html index 77907b2..013ea01 100644 --- a/layouts/partials/post-list.html +++ b/layouts/partials/post-list.html @@ -1,4 +1,5 @@ -{{ range where .Pages.ByPublishDate.Reverse "Section" "post" }} +{{ $pages := where site.RegularPages "Type" "in" site.Params.mainSections }} +{{ range $pages.ByPublishDate.Reverse }}

{{ .Title | markdownify }} {{ $customDateFormat := "January 2, 2006" }} diff --git a/netlify.toml b/netlify.toml index 8c2da6a..28f4bed 100644 --- a/netlify.toml +++ b/netlify.toml @@ -3,6 +3,6 @@ command = "cd exampleSite && hugo --gc --themesDir ../.." [build.environment] - HUGO_VERSION = "0.54.0" + HUGO_VERSION = "0.57.1" HUGO_THEME = "repo" HUGO_BASEURL = "https://minimal-bootstrap-hugo-theme.netlify.com/" \ No newline at end of file -- cgit v1.2.3