lyceum-site/layouts/partials/docs/date.html
2024-10-04 00:08:11 +02:00

6 lines
217 B
HTML

<!--
Returns formatted date.
Usage: partial "docs/date" (dict "Date" .Date "Format" .Site.Params.BookDateFormat)
-->
{{- $format := default "January 2, 2006" .Format -}}
{{- return (time.Format $format .Date) -}}