Skip to content

Commit

Permalink
fix gohugoio/hugoThemes#682 for the XMin theme
Browse files Browse the repository at this point in the history
  • Loading branch information
yihui committed Aug 16, 2019
1 parent da0192c commit 6123be2
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion layouts/_default/list.html
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,9 @@ <h1>{{ .Title | markdownify }}</h1>
{{ .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>
Expand Down

0 comments on commit 6123be2

Please # to comment.