#582, use time.Format for date formatting

This commit is contained in:
Alex Shpak 2024-05-18 12:48:43 +02:00
parent 90eab4a917
commit e104a11f42

View file

@ -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) -}}