ananke/layouts/post/summary.html
Charles Brunet 5520ed119f
use time.Format to format dates. It allows dates to be localized. (#537)
* use time.Format to format dates. It allows dates to be localized.

* Keep old default format, to remain compatible with older versions of hugo
2022-04-21 13:15:53 -04:00

16 lines
485 B
HTML

<div class="mb3 pa4 {{ $.Param "text_color" | default "mid-gray" }} overflow-hidden">
{{ if .Date }}
<div class="f6">
{{ .Date | time.Format (default "January 2, 2006" .Site.Params.date_format) }}
</div>
{{ end }}
<h1 class="f3 near-black">
<a href="{{ .RelPermalink }}" class="link black dim">
{{ .Title }}
</a>
</h1>
<div class="nested-links f5 lh-copy nested-copy-line-height">
{{ .Summary }}
</div>
</div>