mirror of
				https://github.com/Wonderfall/hugo-WonderMod.git
				synced 2025-10-31 03:45:24 +01:00 
			
		
		
		
	post-meta: improvements
- hide zero date (closes #33) - fix separator - refactor
This commit is contained in:
		| @@ -1,5 +1,11 @@ | |||||||
| <time>{{ .Date.Format (default "January 2, 2006" .Site.Params.DateFormat) }}</time> | {{- if not .Date.IsZero -}} | ||||||
| {{- if $.Site.Params.ShowReadingTime -}} ·  | <time>{{- .Date.Format (default "January 2, 2006" .Site.Params.DateFormat) }}</time> ·  | ||||||
| {{- $default_txt := print .ReadingTime " " "min" }} | {{- end -}} | ||||||
| {{- i18n "read_time" .ReadingTime | default  $default_txt  }}{{ end }} |  | ||||||
| {{- if or .Params.author .Site.Params.author }} · {{- .Params.author | default .Site.Params.author }}{{ end }} | {{- if $.Site.Params.ShowReadingTime -}} | ||||||
|  | {{- i18n "read_time" .ReadingTime | default (printf "%s min" .ReadingTime) }} ·  | ||||||
|  | {{- end -}} | ||||||
|  |  | ||||||
|  | {{- if or .Params.author .Site.Params.author }} | ||||||
|  | {{- printf "%s" (.Params.author | default .Site.Params.author) }} | ||||||
|  | {{- end -}} | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user
	 Aditya Telange
					Aditya Telange