Skip to content
Snippets Groups Projects
Commit e104a11f authored by Alex Shpak's avatar Alex Shpak
Browse files

#582, use time.Format for date formatting

parent 90eab4a9
Branches
No related tags found
No related merge requests found
...@@ -3,4 +3,4 @@ ...@@ -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) -}}
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment