cc-docs/layouts/partials/main/date.html

6 lines
209 B
HTML
Raw Normal View History

2023-07-04 16:33:06 +02:00
<!--
Returns formatted date.
Usage: partial "docs/date" (dict "Date" .Date "Format" .Site.Params.BookDateFormat)
-->
{{ $format := default "January 2, 2006" .Format -}}
{{ return (.Date.Format $format) -}}