Browse Source

Merge 99a0bfa099 into 056246eb62

pull/363/merge
Marco 4 years ago
parent
commit
02766a96d8
No account linked to committer's email address
3 changed files with 20 additions and 4 deletions
  1. 9
    1
      i18n/de.toml
  2. 9
    1
      i18n/en.toml
  3. 2
    2
      layouts/_default/single.html

+ 9
- 1
i18n/de.toml View File

@@ -32,4 +32,12 @@ other = "Eine Email Adresse wird benötigt."
other = "Senden"

[taxonomyPageList]
other = "Below you will find pages that utilize the taxonomy term “{{ .Title }}”"
other = "Below you will find pages that utilize the taxonomy term “{{ .Title }}”"

[readingTime]
one = "Eine Minute"
other = "{{ .Count }} Minuten"

[wordCount]
one = "Ein Wort"
other = "{{ .Count }} Wörter"

+ 9
- 1
i18n/en.toml View File

@@ -32,4 +32,12 @@ other = "An email address is required."
other = "Send"

[taxonomyPageList]
other = "Below you will find pages that utilize the taxonomy term “{{ .Title }}”"
other = "Below you will find pages that utilize the taxonomy term “{{ .Title }}”"

[readingTime]
one = "One minute read"
other = "{{ .Count }} minutes read"

[wordCount]
one = "One word"
other = "{{ .Count }} words"

+ 2
- 2
layouts/_default/single.html View File

@@ -41,8 +41,8 @@
3) A page front matter value is set `show_reading_time = true`
*/}}
{{ if (or (eq (.Param "show_reading_time") true) (eq $section.Params.show_reading_time true) )}}
<span class="f6 mv4 dib tracked"> - {{ .ReadingTime}} minutes read</span>
<span class="f6 mv4 dib tracked"> - {{ .WordCount}} words</span>
<span class="f6 mv4 dib tracked"> - {{ i18n "readingTime" .ReadingTime }} </span>
<span class="f6 mv4 dib tracked"> - {{ i18n "wordCount" .WordCount }} </span>
{{ end }}
</header>
<div class="nested-copy-line-height lh-copy {{ $.Param "post_content_classes" | default "serif"}} f4 nested-links nested-img mid-gray pr4-l w-two-thirds-l">

Loading…
Cancel
Save