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

github.com/jaden/twentyfourteen.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDan Hersam <dan@hersam.com>2019-08-20 02:50:15 +0300
committerDan Hersam <dan@hersam.com>2019-08-20 02:50:15 +0300
commit89e9097208629a4b3f8c4318c5bf64eff73c7f71 (patch)
tree1434522ccd97567cf0f950176ac1053a177e44ce
parent83f0a782af8c678f0017d56c2ac8478c31cf8c52 (diff)
Update for upcoming Hugo v0.58 breaking change
https://github.com/gohugoio/hugoThemes/issues/682
-rw-r--r--layouts/_default/list.html4
-rw-r--r--layouts/index.html4
2 files changed, 4 insertions, 4 deletions
diff --git a/layouts/_default/list.html b/layouts/_default/list.html
index abd9686..86ecda9 100644
--- a/layouts/_default/list.html
+++ b/layouts/_default/list.html
@@ -9,10 +9,10 @@
<h1 class="archive-title">{{ .Title }} Archive</h1>
</header>
- {{ range where .Data.Pages "Section" "post" }}
+ {{ range where site.RegularPages "Type" "in" site.Params.mainSections }}
{{ partial "content.html" . }}
{{ end }}
-
+
</div><!-- #content -->
</div><!-- #primary -->
{{ partial "sidebar.html" . }}
diff --git a/layouts/index.html b/layouts/index.html
index e7101e6..a9fcf5e 100644
--- a/layouts/index.html
+++ b/layouts/index.html
@@ -5,10 +5,10 @@
<div id="primary" class="content-area">
<div id="content" class="site-content" role="main">
- {{ range first 10 (where .Data.Pages "Section" "post") }}
+ {{ range first 10 (where site.RegularPages "Type" "in" site.Params.mainSections) }}
{{ partial "content.html" . }}
{{ end }}
-
+
</div><!-- #content -->
</div><!-- #primary -->
{{ partial "sidebar.html" . }}