Skip to content

Commit 6123be2

Browse files
committed
fix gohugoio/hugoThemes#682 for the XMin theme
1 parent da0192c commit 6123be2

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

layouts/_default/list.html

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,9 @@ <h1>{{ .Title | markdownify }}</h1>
77
{{ .Content }}
88

99
<ul>
10-
{{ range (where .Data.Pages "Section" "!=" "") }}
10+
{{ $pages := .Pages }}
11+
{{ if .IsHome }}{{ $pages = .Site.RegularPages }}{{ end }}
12+
{{ range (where $pages "Section" "!=" "") }}
1113
<li>
1214
<span class="date">{{ .Date.Format "2006/01/02" }}</span>
1315
<a href="{{ .RelPermalink }}">{{ .Title | markdownify }}</a>

0 commit comments

Comments
 (0)