mirror of
				https://github.com/adityatelange/hugo-PaperMod.git
				synced 2025-11-04 10:22:44 +01:00 
			
		
		
		
	Show full date on hovering over it in post-meta
This commit is contained in:
		@@ -1,7 +1,7 @@
 | 
			
		||||
{{- $scratch := newScratch }}
 | 
			
		||||
 | 
			
		||||
{{- 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 }}
 | 
			
		||||
 | 
			
		||||
{{- if (.Param "ShowReadingTime") -}}
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user