projects
/
brevno-suite
/
themes
/
xmin
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
da0192c
)
fix https://github.com/gohugoio/hugoThemes/issues/682 for the XMin theme
author
Yihui Xie
<xie@yihui.name>
Fri, 16 Aug 2019 18:08:49 +0000
(13:08 -0500)
committer
Yihui Xie
<xie@yihui.name>
Fri, 16 Aug 2019 18:08:49 +0000
(13:08 -0500)
layouts/_default/list.html
patch
|
blob
|
history
diff --git
a/layouts/_default/list.html
b/layouts/_default/list.html
index f8a1e053e2152bf860989efdcdcd95527d01254f..06b290a2238a248e3db2ba1994e489b5d4f35dfa 100644
(file)
--- 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>