diff options
author | Yihui Xie | 2019-08-16 13:08:49 -0500 |
---|---|---|
committer | Yihui Xie | 2019-08-16 13:08:49 -0500 |
commit | 6123be24bf4a7517ae9cbf05882b62f52684d16d (patch) | |
tree | 762141e71da1e9e90d7b1a449028d0a23dbcb41d /layouts | |
parent | da0192c7a78b57dfdbb73c0633de131c3253cc4f (diff) | |
download | hugo-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')
-rw-r--r-- | layouts/_default/list.html | 4 |
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> |