#582, use time.Format for date formatting
This commit is contained in:
parent
90eab4a917
commit
e104a11f42
1 changed files with 1 additions and 1 deletions
|
@ -3,4 +3,4 @@
|
||||||
Usage: partial "docs/date" (dict "Date" .Date "Format" .Site.Params.BookDateFormat)
|
Usage: partial "docs/date" (dict "Date" .Date "Format" .Site.Params.BookDateFormat)
|
||||||
-->
|
-->
|
||||||
{{- $format := default "January 2, 2006" .Format -}}
|
{{- $format := default "January 2, 2006" .Format -}}
|
||||||
{{- return (.Date.Format $format) -}}
|
{{- return (time.Format $format .Date) -}}
|
||||||
|
|
Loading…
Reference in a new issue