p.d-legal/themes/hugo-book/layouts/partials/docs/date.html

7 lines
212 B
HTML
Raw Permalink Normal View History

2024-02-26 08:25:11 +00: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) -}}