Pass reading time as parameter to reading-time i18n string
This commit is contained in:
parent
01f9e43e59
commit
3bb8c34462
|
@ -5,7 +5,7 @@ other = "Cerca"
|
|||
other = "2006-01-02"
|
||||
|
||||
[reading-time]
|
||||
other = "Minuts lectura"
|
||||
other = "{{ .Count }} Minuts lectura"
|
||||
|
||||
[tags]
|
||||
other = "Etiquetes"
|
||||
|
|
|
@ -5,7 +5,7 @@ other = "Suchen ..."
|
|||
other = "02.01.2006"
|
||||
|
||||
[reading-time]
|
||||
other = "Min. Lesezeit"
|
||||
other = "{{ .Count }} Min. Lesezeit"
|
||||
|
||||
[tags]
|
||||
other = "Stichworte"
|
||||
|
|
|
@ -5,7 +5,7 @@ other = "Search"
|
|||
other = "Jan 2, 2006"
|
||||
|
||||
[reading-time]
|
||||
other = "min read"
|
||||
other = "{{ .Count }} min read"
|
||||
|
||||
[tags]
|
||||
other = "Tags"
|
||||
|
|
|
@ -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"
|
||||
|
|
|
@ -5,7 +5,7 @@ other = "buscar"
|
|||
other = "2006-01-02"
|
||||
|
||||
[reading-time]
|
||||
other = "minutos lectura"
|
||||
other = "{{ .Count }} minutos lectura"
|
||||
|
||||
[tags]
|
||||
other = "Etiquetas"
|
||||
|
|
|
@ -11,7 +11,7 @@ other = "دسته بندی ها"
|
|||
other = "سری مطالب"
|
||||
|
||||
[reading-time]
|
||||
other = "دقیقه بخوانید"
|
||||
other = "{{ .Count }} دقیقه بخوانید"
|
||||
|
||||
[summary-dateformat]
|
||||
other = "Jan 2, 2006"
|
||||
|
|
|
@ -5,7 +5,7 @@ other = "Rechercher"
|
|||
other = "02/01/2006"
|
||||
|
||||
[reading-time]
|
||||
other = "min de lecture"
|
||||
other = "{{ .Count }} min de lecture"
|
||||
|
||||
[tags]
|
||||
other = "Étiquettes"
|
||||
|
|
|
@ -5,7 +5,7 @@ other = "検索"
|
|||
other = "2006/1/2"
|
||||
|
||||
[reading-time]
|
||||
other = "分で読めます"
|
||||
other = "{{ .Count }} 分で読めます"
|
||||
|
||||
[tags]
|
||||
other = "タグ"
|
||||
|
|
|
@ -5,7 +5,7 @@ other = "검색"
|
|||
other = "2006년 01월 02일"
|
||||
|
||||
[reading-time]
|
||||
other = "min read"
|
||||
other = "{{ .Count }} min read"
|
||||
|
||||
[tags]
|
||||
other = "태그"
|
||||
|
|
|
@ -5,7 +5,7 @@ other = "Pesquisar"
|
|||
other = "02-01-2006"
|
||||
|
||||
[reading-time]
|
||||
other = "min. de leitura"
|
||||
other = "{{ .Count }} min. de leitura"
|
||||
|
||||
[tags]
|
||||
other = "Tags"
|
||||
|
|
|
@ -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"
|
||||
|
|
|
@ -5,7 +5,7 @@ other = "Пошук"
|
|||
other = "Jan 2, 2006"
|
||||
|
||||
[reading-time]
|
||||
other = "хв читати"
|
||||
other = "{{ .Count }} хв читати"
|
||||
|
||||
[tags]
|
||||
other = "Теги"
|
||||
|
|
|
@ -5,7 +5,7 @@ other = "搜索"
|
|||
other = "2006年01月02日"
|
||||
|
||||
[reading-time]
|
||||
other = "分钟"
|
||||
other = "{{ .Count }} 分钟"
|
||||
|
||||
[tags]
|
||||
other = "标签"
|
||||
|
|
|
@ -4,7 +4,7 @@
|
|||
{{ if ne (.Date.Format (i18n "summary-dateformat")) (.Lastmod.Format (i18n "summary-dateformat")) }}
|
||||
· <time class="single__info" title="{{ i18n "tooltip-modified" }}"> {{ ($.Site.Params.modifiedTimeIcon | safeHTML) | default "📝" }} {{ .Lastmod.Format (i18n "single-dateformat") }} </time>
|
||||
{{ end }}
|
||||
· <span class="single__info" title="{{ i18n "tooltip-reading-time" }}"> {{ ($.Site.Params.readingTimeIcon | safeHTML) | default "☕" }} {{ .ReadingTime }} {{ i18n "reading-time" }} </span>
|
||||
· <span class="single__info" title="{{ i18n "tooltip-reading-time" }}"> {{ ($.Site.Params.readingTimeIcon | safeHTML) | default "☕" }} {{ i18n "reading-time" .ReadingTime }} </span>
|
||||
{{ with .Params.Author }}
|
||||
· <span class="single__info" title="{{ i18n "single-writtenBy" }}">{{if $params.AuthorEmoji }}{{ $params.AuthorEmoji }}{{ else }}{{ ($.Site.Params.authorIcon | safeHTML) | default "✍️" }}{{ end }} {{ . }}</span>
|
||||
{{ end }}
|
||||
|
|
|
@ -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 }}"> · {{ ($.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 }}"> · {{ ($.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 }}"> · {{ ($.Site.Params.readingTimeIcon | safeHTML) | default "☕" }} {{ i18n "reading-time" .ReadingTime }}</span>
|
||||
{{ with $.Param "author" }}
|
||||
· <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 }} {{ . }}</span>
|
||||
{{ end }}
|
||||
|
|
|
@ -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 }}"> · {{ ($.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 }}"> · {{ ($.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 }}"> · {{ ($.Site.Params.readingTimeIcon | safeHTML) | default "☕" }} {{ i18n "reading-time" .ReadingTime }} </span>
|
||||
{{ with $.Param "author" }}
|
||||
· <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 }} {{ . }}</span>
|
||||
{{ end }}
|
||||
|
|
|
@ -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 }}"> · {{ ($.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 }}"> · {{ ($.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 }}"> · {{ ($.Site.Params.readingTimeIcon | safeHTML) | default "☕" }} {{ i18n "reading-time" .ReadingTime }}</span>
|
||||
{{ with $params.Author }}
|
||||
· <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 }} {{ . }}</span>
|
||||
{{ end }}
|
||||
|
|
Loading…
Reference in New Issue