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

github.com/AngeloStavrow/indigo.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAngelo Stavrow <contact@angelostavrow.com>2019-08-27 15:41:53 +0300
committerAngelo Stavrow <contact@angelostavrow.com>2019-08-27 15:41:53 +0300
commita82434210e21fd502dd79304d6f0a30219065a31 (patch)
treeb979a395081ec5148ff439a0f200153cad8585bc /layouts
parent75f84b4adc1c8ba8f2cb4f8497d9b06dbbfc4349 (diff)
Fixes breaking change in Hugo 0.57
Diffstat (limited to 'layouts')
-rw-r--r--layouts/_default/list.html2
-rw-r--r--layouts/index.html2
-rw-r--r--layouts/index.xml2
3 files changed, 3 insertions, 3 deletions
diff --git a/layouts/_default/list.html b/layouts/_default/list.html
index 0f1abe2..4af97c7 100644
--- a/layouts/_default/list.html
+++ b/layouts/_default/list.html
@@ -1,7 +1,7 @@
{{ partial "header.html" . }}
<h2>{{ .Title }}</h2>
<div id="content">
-{{ range $index, $page := (.Paginate (where .Data.Pages "Type" "post")).Pages }}
+{{ range $index, $page := (.Paginate (where .Site.RegularPages "Type" "post")).Pages }}
{{ if ne $index 0 }}
{{ end }}
{{ .Render "li" }}
diff --git a/layouts/index.html b/layouts/index.html
index c39fbb5..4e973ac 100644
--- a/layouts/index.html
+++ b/layouts/index.html
@@ -3,7 +3,7 @@
<!-- Content goes here -->
<div id="content">
-{{ range $index, $page := (.Paginate (where (where .Data.Pages "Type" "post") ".Params.hidden" "!=" "true" )).Pages }}
+{{ range $index, $page := (.Paginate (where (where .Site.RegularPages "Type" "post") ".Params.hidden" "!=" "true" )).Pages }}
{{ if ne $index 0 }}
{{ end }}
{{ .Render "li" }}
diff --git a/layouts/index.xml b/layouts/index.xml
index 6605035..faf0a1c 100644
--- a/layouts/index.xml
+++ b/layouts/index.xml
@@ -12,7 +12,7 @@
{{ with .OutputFormats.Get "RSS" }}
{{ printf "<atom:link href=%q rel=\"self\" type=%q />" .Permalink .MediaType | safeHTML }}
{{ end }}
- {{ range .Pages }}
+ {{ range .Site.RegularPages }}
<item>
<title>{{ .Title }}</title>
<link>{{ .Permalink }}</link>