diff options
Diffstat (limited to '')
| -rw-r--r-- | layouts/partials/docs/date.html | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/layouts/partials/docs/date.html b/layouts/partials/docs/date.html new file mode 100644 index 0000000..d33cdbe --- /dev/null +++ b/layouts/partials/docs/date.html @@ -0,0 +1,6 @@ +<!-- + 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 | lower ) -}} |
