about summary refs log tree commit diff stats
path: root/layouts/_default/list.html
diff options
context:
space:
mode:
authorYihui Xie2019-08-16 13:08:49 -0500
committerYihui Xie2019-08-16 13:08:49 -0500
commit6123be24bf4a7517ae9cbf05882b62f52684d16d (patch)
tree762141e71da1e9e90d7b1a449028d0a23dbcb41d /layouts/_default/list.html
parentda0192c7a78b57dfdbb73c0633de131c3253cc4f (diff)
downloadhugo-xmin-6123be24bf4a7517ae9cbf05882b62f52684d16d.tar.lz
hugo-xmin-6123be24bf4a7517ae9cbf05882b62f52684d16d.tar.zst
hugo-xmin-6123be24bf4a7517ae9cbf05882b62f52684d16d.zip
fix https://github.com/gohugoio/hugoThemes/issues/682 for the XMin theme
Diffstat (limited to 'layouts/_default/list.html')
-rw-r--r--layouts/_default/list.html4
1 files changed, 3 insertions, 1 deletions
diff --git a/layouts/_default/list.html b/layouts/_default/list.html
index f8a1e05..06b290a 100644
--- a/layouts/_default/list.html
+++ b/layouts/_default/list.html
@@ -7,7 +7,9 @@
 {{ .Content }}
 
 <ul>
-  {{ range (where .Data.Pages "Section" "!=" "") }}
+  {{ $pages := .Pages }}
+  {{ if .IsHome }}{{ $pages = .Site.RegularPages }}{{ end }}
+  {{ range (where $pages "Section" "!=" "") }}
   <li>
     <span class="date">{{ .Date.Format "2006/01/02" }}</span>
     <a href="{{ .RelPermalink }}">{{ .Title | markdownify }}</a>