home/layouts/partials/docs/date.html

7 lines
217 B
HTML
Raw Normal View History

2024-11-10 00:33:32 +00:00
<!--
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) -}}