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

github.com/jsnjack/hugo-changelog-theme.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorYauhen Shulitski <jsnjack@gmail.com>2019-08-17 17:21:55 +0300
committerYauhen Shulitski <jsnjack@gmail.com>2019-08-17 17:21:55 +0300
commitb94a13bde2272739893ae528a9f0831592b00096 (patch)
tree5dbde2fd4e7b3a4a1ef83ae4b34da5ec617396fb
parenteb1899d4ca34f9a8201c589388352683f92d0cfd (diff)
:m: Update to work with hugo 0.57+
-rw-r--r--layouts/index.html6
1 files changed, 3 insertions, 3 deletions
diff --git a/layouts/index.html b/layouts/index.html
index 3615138..b07d453 100644
--- a/layouts/index.html
+++ b/layouts/index.html
@@ -7,11 +7,11 @@
<div class="container grid-lg">
<div class="columns">
<div class="column col-10 col-sm-12 col-mx-auto text-left">
- {{ $paginator := .Paginate ( where .Pages.ByWeight.Reverse "Section" "released" ) }}
+ {{ $paginator := .Paginate ( where .Site.RegularPages.ByWeight.Reverse "Section" "released" ) }}
<div class="section timeline">
{{ if eq $paginator.PageNumber 1 }}
- {{ $deprecatedFeatures := where .Pages "Section" "deprecated" }}
+ {{ $deprecatedFeatures := where .Site.RegularPages "Section" "deprecated" }}
{{ if $deprecatedFeatures }}
<div class="accordion deprecated">
<input type="checkbox" id="accordion-1" name="accordion-checkbox" hidden>
@@ -37,7 +37,7 @@
</div>
{{ end }}
- {{ $experimentalPages := where .Pages "Section" "experimental" }}
+ {{ $experimentalPages := where .Site.RegularPages "Section" "experimental" }}
{{ if $experimentalPages }}
<div class="timeline-item experimental">
<div class="timeline-left">