mirror of
https://github.com/Wonderfall/hugo-WonderMod.git
synced 2024-11-24 19:41:37 +01:00
Show full date on hovering over it in post-meta
This commit is contained in:
parent
76ea33c89c
commit
3bcafa0be9
@ -1,7 +1,7 @@
|
|||||||
{{- $scratch := newScratch }}
|
{{- $scratch := newScratch }}
|
||||||
|
|
||||||
{{- if not .Date.IsZero -}}
|
{{- if not .Date.IsZero -}}
|
||||||
{{- $scratch.Add "meta" (slice (.Date.Format (default "January 2, 2006" .Site.Params.DateFormat))) }}
|
{{- $scratch.Add "meta" (slice (printf "<span title='%s'>%s</span>" (.Date) (.Date.Format (default "January 2, 2006" .Site.Params.DateFormat)))) }}
|
||||||
{{- end }}
|
{{- end }}
|
||||||
|
|
||||||
{{- if (.Param "ShowReadingTime") -}}
|
{{- if (.Param "ShowReadingTime") -}}
|
||||||
|
Loading…
Reference in New Issue
Block a user