summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--i18n/en.yaml3
-rw-r--r--i18n/it.yaml3
-rw-r--r--themes/danix-xyz-hacker/layouts/taxonomy/list.html4
3 files changed, 8 insertions, 2 deletions
diff --git a/i18n/en.yaml b/i18n/en.yaml
index 2a90f2b..64b0a26 100644
--- a/i18n/en.yaml
+++ b/i18n/en.yaml
@@ -26,6 +26,9 @@ tag: "Tag"
tags: "Tags"
relatedPosts: "Related articles"
noRelated: "No related articles."
+postCount:
+ one: "1 post"
+ other: "{{ . }} posts"
# Article types
life: "Life"
diff --git a/i18n/it.yaml b/i18n/it.yaml
index 9fd729e..6bc291f 100644
--- a/i18n/it.yaml
+++ b/i18n/it.yaml
@@ -26,6 +26,9 @@ tag: "Tag"
tags: "Tag"
relatedPosts: "Articoli correlati"
noRelated: "Nessun articolo correlato."
+postCount:
+ one: "1 articolo"
+ other: "{{ . }} articoli"
# Article types
life: "Vita"
diff --git a/themes/danix-xyz-hacker/layouts/taxonomy/list.html b/themes/danix-xyz-hacker/layouts/taxonomy/list.html
index b3ab612..cd4945a 100644
--- a/themes/danix-xyz-hacker/layouts/taxonomy/list.html
+++ b/themes/danix-xyz-hacker/layouts/taxonomy/list.html
@@ -23,7 +23,7 @@
<div class="relative">
{{ partial "article-list-item.html" . }}
<span class="absolute top-4 right-4 px-2 py-0.5 rounded text-xs font-mono bg-surface text-text-dim border border-border/30">
- {{ .Pages.Len }}
+ {{ i18n "postCount" .Pages.Len }}
</span>
</div>
{{ end }}
@@ -33,7 +33,7 @@
<div class="relative">
{{ partial "article-list-item.html" . }}
<span class="absolute top-4 right-4 px-2 py-0.5 rounded text-xs font-mono bg-surface text-text-dim border border-border/30">
- {{ .Pages.Len }}
+ {{ i18n "postCount" .Pages.Len }}
</span>
</div>
{{ end }}