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

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