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

github.com/goodroot/hugo-classic.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJoseph Lozano <joseph@joseph-lozano.com>2020-07-30 03:39:55 +0300
committerJoseph Lozano <joseph@joseph-lozano.com>2020-07-30 03:39:55 +0300
commitd5924ca25bcf05ba91651adcebcba10a7c430971 (patch)
treee76f3fa7449e7075fe9f219791b083fd2fa0a79b
parenta7352c4e715e9ea148893c2d6e5a77bc86007012 (diff)
use .Pages in list layout
-rw-r--r--layouts/_default/list.html2
1 files changed, 1 insertions, 1 deletions
diff --git a/layouts/_default/list.html b/layouts/_default/list.html
index 0f14ca7..0fed9e9 100644
--- a/layouts/_default/list.html
+++ b/layouts/_default/list.html
@@ -8,7 +8,7 @@
{{ .Content }}
<ul>
- {{ $pages := .Site.RegularPages }}
+ {{ $pages := .Pages }}
{{ if .IsHome }}{{ $pages := .Site.RegularPages }}{{ end }}
{{ range (where $pages "Section" "!=" "") }}
<li>