mirror of
https://github.com/Wonderfall/hugo-WonderMod.git
synced 2024-11-25 12:01:37 +01:00
i18n: read_time improvements
This commit is contained in:
parent
7cc579f197
commit
fd143fede2
@ -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>
|
||||||
|
Loading…
Reference in New Issue
Block a user