Replace hardcoded "Posts: N" with i18n "postCount" key using Hugo's
pluralization support (one/other forms). Renders "1 post" or "N posts"
in English, "1 articolo" or "N articoli" in Italian.
Co-Authored-By: Claude Haiku 4.5 <redacted>
tags: "Tags"
relatedPosts: "Related articles"
noRelated: "No related articles."
+postCount:
+ one: "1 post"
+ other: "{{ . }} posts"
# Article types
life: "Life"
tags: "Tag"
relatedPosts: "Articoli correlati"
noRelated: "Nessun articolo correlato."
+postCount:
+ one: "1 articolo"
+ other: "{{ . }} articoli"
# Article types
life: "Vita"
<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 }}
<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 }}