From b94a13bde2272739893ae528a9f0831592b00096 Mon Sep 17 00:00:00 2001 From: Yauhen Shulitski Date: Sat, 17 Aug 2019 16:21:55 +0200 Subject: :m: Update to work with hugo 0.57+ --- layouts/index.html | 6 +++--- 1 file 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 @@
- {{ $paginator := .Paginate ( where .Pages.ByWeight.Reverse "Section" "released" ) }} + {{ $paginator := .Paginate ( where .Site.RegularPages.ByWeight.Reverse "Section" "released" ) }}
{{ if eq $paginator.PageNumber 1 }} - {{ $deprecatedFeatures := where .Pages "Section" "deprecated" }} + {{ $deprecatedFeatures := where .Site.RegularPages "Section" "deprecated" }} {{ if $deprecatedFeatures }}
@@ -37,7 +37,7 @@
{{ end }} - {{ $experimentalPages := where .Pages "Section" "experimental" }} + {{ $experimentalPages := where .Site.RegularPages "Section" "experimental" }} {{ if $experimentalPages }}
-- cgit v1.2.3