hugo-theme-introduction/layouts/partials/blog/li.html
Victoria Drake fade059bf5 Use layout identifiers for dates
- Adds new Hugo feature
  (https://gohugo.io/functions/dateformat/#datetime-formatting-layouts)
enabling date localization in defaults
2022-02-14 06:42:27 -06:00

6 lines
274 B
HTML

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