This commit is contained in:
Yihui Xie 2019-08-16 13:08:49 -05:00
parent da0192c7a7
commit 6123be24bf

View File

@ -7,7 +7,9 @@
{{ .Content }} {{ .Content }}
<ul> <ul>
{{ range (where .Data.Pages "Section" "!=" "") }} {{ $pages := .Pages }}
{{ if .IsHome }}{{ $pages = .Site.RegularPages }}{{ end }}
{{ range (where $pages "Section" "!=" "") }}
<li> <li>
<span class="date">{{ .Date.Format "2006/01/02" }}</span> <span class="date">{{ .Date.Format "2006/01/02" }}</span>
<a href="{{ .RelPermalink }}">{{ .Title | markdownify }}</a> <a href="{{ .RelPermalink }}">{{ .Title | markdownify }}</a>