Pass reading time as parameter to reading-time i18n string

This commit is contained in:
Yoni 2021-08-21 23:25:36 +03:00
parent 01f9e43e59
commit 3bb8c34462
17 changed files with 17 additions and 17 deletions

View File

@ -5,7 +5,7 @@ other = "Cerca"
other = "2006-01-02"
[reading-time]
other = "Minuts lectura"
other = "{{ .Count }} Minuts lectura"
[tags]
other = "Etiquetes"

View File

@ -5,7 +5,7 @@ other = "Suchen ..."
other = "02.01.2006"
[reading-time]
other = "Min. Lesezeit"
other = "{{ .Count }} Min. Lesezeit"
[tags]
other = "Stichworte"

View File

@ -5,7 +5,7 @@ other = "Search"
other = "Jan 2, 2006"
[reading-time]
other = "min read"
other = "{{ .Count }} min read"
[tags]
other = "Tags"

View File

@ -5,7 +5,7 @@ other = "Serĉi"
other = "02/01/2006"
[reading-time]
other = "min de legado"
other = "{{ .Count }} min de legado"
[tags]
other = "Etiketoj"

View File

@ -5,7 +5,7 @@ other = "buscar"
other = "2006-01-02"
[reading-time]
other = "minutos lectura"
other = "{{ .Count }} minutos lectura"
[tags]
other = "Etiquetas"

View File

@ -11,7 +11,7 @@ other = "دسته بندی ها"
other = "سری مطالب"
[reading-time]
other = "دقیقه بخوانید"
other = "{{ .Count }} دقیقه بخوانید"
[summary-dateformat]
other = "Jan 2, 2006"

View File

@ -5,7 +5,7 @@ other = "Rechercher"
other = "02/01/2006"
[reading-time]
other = "min de lecture"
other = "{{ .Count }} min de lecture"
[tags]
other = "Étiquettes"

View File

@ -5,7 +5,7 @@ other = "検索"
other = "2006/1/2"
[reading-time]
other = "分で読めます"
other = "{{ .Count }} 分で読めます"
[tags]
other = "タグ"

View File

@ -5,7 +5,7 @@ other = "검색"
other = "2006년 01월 02일"
[reading-time]
other = "min read"
other = "{{ .Count }} min read"
[tags]
other = "태그"

View File

@ -5,7 +5,7 @@ other = "Pesquisar"
other = "02-01-2006"
[reading-time]
other = "min. de leitura"
other = "{{ .Count }} min. de leitura"
[tags]
other = "Tags"

View File

@ -5,7 +5,7 @@ other = "Căută"
other = "2006-01-02"
[reading-time]
other = "minute de citit"
other = "{{ .Count }} minute de citit"
[tags]
other = "Etichete"

View File

@ -5,7 +5,7 @@ other = "Пошук"
other = "Jan 2, 2006"
[reading-time]
other = "хв читати"
other = "{{ .Count }} хв читати"
[tags]
other = "Теги"

View File

@ -5,7 +5,7 @@ other = "搜索"
other = "2006年01月02日"
[reading-time]
other = "分钟"
other = "{{ .Count }} 分钟"
[tags]
other = "标签"

View File

@ -4,7 +4,7 @@
{{ if ne (.Date.Format (i18n "summary-dateformat")) (.Lastmod.Format (i18n "summary-dateformat")) }}
&nbsp;&middot;&nbsp; <time class="single__info" title="{{ i18n "tooltip-modified" }}"> {{ ($.Site.Params.modifiedTimeIcon | safeHTML) | default "📝" }}&nbsp;{{ .Lastmod.Format (i18n "single-dateformat") }} </time>
{{ end }}
&nbsp;&middot;&nbsp; <span class="single__info" title="{{ i18n "tooltip-reading-time" }}"> {{ ($.Site.Params.readingTimeIcon | safeHTML) | default "☕" }}&nbsp;{{ .ReadingTime }}&nbsp;{{ i18n "reading-time" }} </span>
&nbsp;&middot;&nbsp; <span class="single__info" title="{{ i18n "tooltip-reading-time" }}"> {{ ($.Site.Params.readingTimeIcon | safeHTML) | default "☕" }}&nbsp;{{ i18n "reading-time" .ReadingTime }} </span>
{{ with .Params.Author }}
&nbsp;&middot;&nbsp; <span class="single__info" title="{{ i18n "single-writtenBy" }}">{{if $params.AuthorEmoji }}{{ $params.AuthorEmoji }}{{ else }}{{ ($.Site.Params.authorIcon | safeHTML) | default "✍️" }}{{ end }}&nbsp;{{ . }}</span>
{{ end }}

View File

@ -6,7 +6,7 @@
{{ if ne (.Date.Format (i18n "summary-dateformat")) (.Lastmod.Format (i18n "summary-dateformat")) }}
<time title="{{ i18n "tooltip-modified" }}" dir="{{ if ne ($.Param "languagedir") "rtl" }}ltr{{ else }}rtl{{ end }}"> &middot; {{ ($.Site.Params.modifiedTimeIcon | safeHTML) | default "📝" }} {{ .Lastmod.Format (i18n "summary-dateformat") }} </time>
{{ end }}
<span title="{{ i18n "tooltip-reading-time" }}" dir="{{ if ne ($.Param "languagedir") "rtl" }}ltr{{ else }}rtl{{ end }}"> &middot; {{ ($.Site.Params.readingTimeIcon | safeHTML) | default "☕" }} {{ .ReadingTime }} {{ i18n "reading-time" }}</span>
<span title="{{ i18n "tooltip-reading-time" }}" dir="{{ if ne ($.Param "languagedir") "rtl" }}ltr{{ else }}rtl{{ end }}"> &middot; {{ ($.Site.Params.readingTimeIcon | safeHTML) | default "☕" }} {{ i18n "reading-time" .ReadingTime }}</span>
{{ with $.Param "author" }}
&middot; <span title="{{ i18n "single-writtenBy" }}" dir="{{ if ne ($.Param "languagedir") "rtl" }}ltr{{ else }}rtl{{ end }}">{{ if $.Param "AuthorEmoji" }}{{ $.Param "AuthorEmoji" }}{{ else }}{{ ($.Site.Params.authorIcon | safeHTML) | default "✍️" }}{{ end }}&nbsp;{{ . }}</span>
{{ end }}

View File

@ -23,7 +23,7 @@
{{ if ne (.Date.Format (i18n "summary-dateformat")) (.Lastmod.Format (i18n "summary-dateformat")) }}
<time title="{{ i18n "tooltip-modified" }}" dir="{{ if ne ($.Param "languagedir") "rtl" }}ltr{{ else }}rtl{{ end }}"> &middot; {{ ($.Site.Params.modifiedTimeIcon | safeHTML) | default "📝" }}&nbsp;{{ .Lastmod.Format (i18n "summary-dateformat") }} </time>
{{ end }}
<span title="{{ i18n "tooltip-reading-time" }}" dir="{{ if ne ($.Param "languagedir") "rtl" }}ltr{{ else }}rtl{{ end }}"> &middot; {{ ($.Site.Params.readingTimeIcon | safeHTML) | default "☕" }}&nbsp;{{ .ReadingTime }}&nbsp;{{ i18n "reading-time" }} </span>
<span title="{{ i18n "tooltip-reading-time" }}" dir="{{ if ne ($.Param "languagedir") "rtl" }}ltr{{ else }}rtl{{ end }}"> &middot; {{ ($.Site.Params.readingTimeIcon | safeHTML) | default "☕" }}&nbsp;{{ i18n "reading-time" .ReadingTime }} </span>
{{ with $.Param "author" }}
&middot; <span title="{{ i18n "single-writtenBy" }}" dir="{{ if ne ($.Param "languagedir") "rtl" }}ltr{{ else }}rtl{{ end }}">{{ if $.Param "authorEmoji" }}{{ $.Param "authorEmoji" }}{{ else }}{{ ($.Site.Params.authorIcon | safeHTML) | default "✍️" }}{{ end }}&nbsp;{{ . }}</span>
{{ end }}

View File

@ -9,7 +9,7 @@
{{ if ne (.Date.Format (i18n "summary-dateformat")) (.Lastmod.Format (i18n "summary-dateformat")) }}
<time title="{{ i18n "tooltip-modified" }}" dir="{{ if ne ($.Param "languagedir") "rtl" }}ltr{{ else }}rtl{{ end }}"> &middot; {{ ($.Site.Params.modifiedTimeIcon | safeHTML) | default "📝" }} {{ .Lastmod.Format (i18n "summary-dateformat") }} </time>
{{ end }}
<span title="{{ i18n "tooltip-reading-time" }}" dir="{{ if ne ($.Param "languagedir") "rtl" }}ltr{{ else }}rtl{{ end }}"> &middot; {{ ($.Site.Params.readingTimeIcon | safeHTML) | default "☕" }} {{ .ReadingTime }} {{ i18n "reading-time" }}</span>
<span title="{{ i18n "tooltip-reading-time" }}" dir="{{ if ne ($.Param "languagedir") "rtl" }}ltr{{ else }}rtl{{ end }}"> &middot; {{ ($.Site.Params.readingTimeIcon | safeHTML) | default "☕" }} {{ i18n "reading-time" .ReadingTime }}</span>
{{ with $params.Author }}
&middot; <span title="{{ i18n "single-writtenBy" }}" dir="{{ if ne ($.Param "languagedir") "rtl" }}ltr{{ else }}rtl{{ end }}">{{ if $params.AuthorEmoji }}{{ $params.AuthorEmoji }}{{ else }}{{ ($.Site.Params.authorIcon | safeHTML) | default "✍️" }}{{ end }}&nbsp;{{ . }}</span>
{{ end }}