adressed change request by using the hugo feature of singular/plural automagic for translation

This commit is contained in:
Augusto Pace 2023-10-24 10:01:43 +02:00
parent ec09d6a19f
commit a5bd8106f8
3 changed files with 5 additions and 15 deletions

View file

@ -125,8 +125,6 @@ other = "Liability Notice"
[search] [search]
other = "Search" other = "Search"
[minute]
other = "minute"
[minutes] [minutes]
other = "minutes" one = "1 minute"
other = "{{.Count}} minutes"

View file

@ -125,8 +125,6 @@ other = "Avviso di responsabilità"
[search] [search]
other = "Ricerca" other = "Ricerca"
[minute]
other = "minuto"
[minutes] [minutes]
other = "minuti" one = "1 minuto"
other = "{{.Count}} minuti"

View file

@ -14,13 +14,7 @@
<div class="card-footer"> <div class="card-footer">
<span class="float-left"> <span class="float-left">
{{ .Date | time.Format ":date_full" }} {{ .Date | time.Format ":date_full" }}
{{ if site.Params.features.readingTime }} | {{ .ReadingTime }} {{ if site.Params.features.readingTime }} | {{ i18n "minutes" .ReadingTime }} {{ end }}</span>
{{ if (ne .ReadingTime 1) }}
{{ i18n "minutes" }}
{{ else }}
{{ i18n "minute" }}
{{ end }}
{{ end }}</span>
<a <a
href="{{ .RelPermalink | relLangURL }}" href="{{ .RelPermalink | relLangURL }}"
class="float-right btn btn-outline-info btn-sm">{{ i18n "read" }}</a> class="float-right btn btn-outline-info btn-sm">{{ i18n "read" }}</a>