webpage/themes/hugo-book/layouts/partials/docs/date.html
kekskurse 27e6a14105 init
2024-11-26 23:25:09 +01: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) -}}