Files
paige-hugo/layouts/partials/paige-date.html
2022-12-13 22:35:17 -08:00

8 lines
248 B
HTML

{{ with .PublishDate }}
{{ $format := ":date_long" }}
{{ with site.Params.paigedateformat }}
{{ $format = . }}
{{ end }}
<p class="text-center text-muted"><time datetime="{{ .Format `2006-01-02` }}">{{ time.Format $format . }}</time></p>
{{ end }}