mirror of
https://github.com/alex-shpak/hugo-book.git
synced 2024-11-25 04:43:04 +00:00
7 lines
212 B
HTML
7 lines
212 B
HTML
<!--
|
|
Returns formatted date.
|
|
Usage: partial "docs/date" (dict "Date" .Date "Format" .Site.Params.BookDateFormat)
|
|
-->
|
|
{{- $format := default "January 2, 2006" .Format -}}
|
|
{{- return (.Date.Format $format) -}}
|