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

github.com/zwbetz-gh/minimal-bootstrap-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-17 00:06:11 +0300
committerzwbetz <zwbetz@gmail.com>2019-08-17 00:06:11 +0300
commit634920a9807574efc408f945a9f4275d7e33f17e (patch)
treed9dbfc28aa62298739a96830cb444bf276b6383c
parent50936abf74a592065e7a9d6fe93541d3a846ce39 (diff)
fix issue per https://github.com/gohugoio/hugoThemes/issues/682
-rw-r--r--layouts/partials/post-list.html3
-rw-r--r--netlify.toml2
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 }}
<p>
<a href="{{ .Permalink }}">{{ .Title | markdownify }}</a>
{{ $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