Skip to content

Commit c59193f

Browse files
authored
Use hugo 0.87's date formatting feature with time.Format (#555)
1 parent 4e2558d commit c59193f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

layouts/partials/post_meta.html

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{{- $scratch := newScratch }}
22

33
{{- if not .Date.IsZero -}}
4-
{{- $scratch.Add "meta" (slice (printf "<span title='%s'>%s</span>" (.Date) (.Date.Format (default "January 2, 2006" .Site.Params.DateFormat)))) }}
4+
{{- $scratch.Add "meta" (slice (printf "<span title='%s'>%s</span>" (.Date) (.Date | time.Format (default "January 2, 2006" .Site.Params.DateFormat)))) }}
55
{{- end }}
66

77
{{- if (.Param "ShowReadingTime") -}}

0 commit comments

Comments
 (0)