b0bf3ccca1
Previously the default date format (`January 2, 2006` ) was used for blog and single page date visualizations. The new parameter `date_format` can be used to override this format. This allows the visualization of localized dates or a changed precision (down to the minute or up to the month or year of publication). Co-authored-by: Regis Philibert <login@regisphilibert.com>
16 lines
439 B
HTML
16 lines
439 B
HTML
<div class="mb3 pa4 mid-gray overflow-hidden">
|
|
{{ if .Date }}
|
|
<div class="f6">
|
|
{{ .Date.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>
|