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

github.com/josephhutch/aether.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJoe Hutchinson <HutchinsonJoseph@JohnDeere.com>2019-08-16 16:12:29 +0300
committerJoe Hutchinson <HutchinsonJoseph@JohnDeere.com>2019-08-16 16:12:29 +0300
commit0cf324b440f3c6ac96d0b585b7dbe44cbd24b3a5 (patch)
tree8d4fb104ab7d3833e35604ece1c1dc27b5c315b7 /layouts
parent97b1dd2830b44051224d98f7ea12db9fb6aa29fa (diff)
Fix v0.57 .Pages breaking change
Diffstat (limited to 'layouts')
-rw-r--r--layouts/_default/list.html6
1 files changed, 5 insertions, 1 deletions
diff --git a/layouts/_default/list.html b/layouts/_default/list.html
index 145d7f3..0c9fb7e 100644
--- a/layouts/_default/list.html
+++ b/layouts/_default/list.html
@@ -15,7 +15,11 @@
{{ . }}
</section>
{{- end }}
- {{ $paginator := .Paginate (where .Pages "Params.displayinlist" "!=" false) -}}
+ {{ $pages := .Pages }}
+ {{ if .IsHome }}
+ {{ $pages = .Site.RegularPages }}
+ {{ end }}
+ {{ $paginator := .Paginate (where $pages "Params.displayinlist" "!=" false) -}}
{{- range $paginator.Pages -}}
{{ .Render "li" }}
{{- end }}