mirror of
https://github.com/alex-shpak/hugo-book.git
synced 2024-11-22 03:19:25 +00:00
#582, use time.Format for date formatting
This commit is contained in:
parent
90eab4a917
commit
e104a11f42
@ -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 New Issue
Block a user