mirror of
https://git.adityakumar.xyz/hugo-theme-introduction.git
synced 2024-11-14 00:59:43 +00:00
fade059bf5
- Adds new Hugo feature (https://gohugo.io/functions/dateformat/#datetime-formatting-layouts) enabling date localization in defaults
6 lines
274 B
HTML
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 }}
|