hugo-theme-introduction/layouts/partials/blog/li.html
Vicky 7bb579950a Fix #81
- Hide date part in posts if no date is given
2018-09-16 12:22:05 +09:00

5 lines
268 B
HTML

{{ range .Pages.ByPublishDate.Reverse }}
<li class="post-item">
<span><a href="{{ .Permalink }}">{{ .Title }}</a></span>{{ if .Params.date }} - <span>{{ .Date.Format (.Site.Params.dateFormat | default "Jan 02, 2006") }}</span>{{ end }}
</li>
{{ end }}