mirror of
				https://github.com/Wonderfall/hugo-WonderMod.git
				synced 2025-10-31 03:45:24 +01:00 
			
		
		
		
	i18n: read_time improvements
This commit is contained in:
		| @@ -51,7 +51,8 @@ | |||||||
|   <footer class="entry-footer"> |   <footer class="entry-footer"> | ||||||
|     <time>{{ .Date.Format "January 2, 2006" }}</time> |     <time>{{ .Date.Format "January 2, 2006" }}</time> | ||||||
|     {{ if $.Site.Params.ShowReadingTime }} . |     {{ if $.Site.Params.ShowReadingTime }} . | ||||||
|     {{ .ReadingTime }}{{ i18n "read_time" | default "min read" }}{{ end }} |     {{ $default_txt := print .ReadingTime " " "min" }} | ||||||
|  |     {{ i18n "read_time" .ReadingTime | default  $default_txt  }}{{ end }} | ||||||
|     {{ if or .Params.author .Site.Params.author }} . {{ .Params.author | default .Site.Params.author }}{{ end }} |     {{ if or .Params.author .Site.Params.author }} . {{ .Params.author | default .Site.Params.author }}{{ end }} | ||||||
|   </footer> |   </footer> | ||||||
|   <a class="entry-link" aria-label="post link to {{ .Title | plainify }}" href="{{ .Permalink }}"></a> |   <a class="entry-link" aria-label="post link to {{ .Title | plainify }}" href="{{ .Permalink }}"></a> | ||||||
|   | |||||||
| @@ -10,7 +10,9 @@ | |||||||
|     <div class="post-meta"> |     <div class="post-meta"> | ||||||
|       <time>{{ .Date.Format "January 2, 2006" }}</time> |       <time>{{ .Date.Format "January 2, 2006" }}</time> | ||||||
|       {{ if or .Params.author .Site.Params.author }} . {{ .Params.author | default .Site.Params.author }}{{ end }} |       {{ if or .Params.author .Site.Params.author }} . {{ .Params.author | default .Site.Params.author }}{{ end }} | ||||||
|       {{ if $.Site.Params.ShowReadingTime }} . {{ .ReadingTime }}{{ i18n "read_time" | default "min read" }}{{ end }} |       {{ if $.Site.Params.ShowReadingTime }} . | ||||||
|  |       {{ $default_txt := print .ReadingTime " " "min" }} | ||||||
|  |       {{ i18n "read_time" .ReadingTime | default  $default_txt  }}{{ end }} | ||||||
|     </div> |     </div> | ||||||
|     {{end}} |     {{end}} | ||||||
|   </header> |   </header> | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user
	 Aditya Telange
					Aditya Telange