diff --git a/layouts/partials/docs/date.html b/layouts/partials/docs/date.html index 73d69a3..8c75361 100644 --- a/layouts/partials/docs/date.html +++ b/layouts/partials/docs/date.html @@ -3,4 +3,4 @@ Usage: partial "docs/date" (dict "Date" .Date "Format" .Site.Params.BookDateFormat) --> {{- $format := default "January 2, 2006" .Format -}} -{{- return (.Date.Format $format) -}} +{{- return (time.Format $format .Date) -}}