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

github.com/yihui/hugo-xmin.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorYihui Xie <xie@yihui.name>2019-08-16 21:08:49 +0300
committerYihui Xie <xie@yihui.name>2019-08-16 21:08:49 +0300
commit6123be24bf4a7517ae9cbf05882b62f52684d16d (patch)
tree762141e71da1e9e90d7b1a449028d0a23dbcb41d
parentda0192c7a78b57dfdbb73c0633de131c3253cc4f (diff)
fix https://github.com/gohugoio/hugoThemes/issues/682 for the XMin theme
-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>