summaryrefslogtreecommitdiffstats
path: root/themes/danix-xyz-hacker/layouts
diff options
context:
space:
mode:
authorDanilo M. <danix@danix.xyz>2026-04-16 12:54:14 +0200
committerDanilo M. <danix@danix.xyz>2026-04-16 12:54:14 +0200
commit71f577b171f6208fff7de47c7dad087955aa5fae (patch)
treea5bebf376a8f98e2e2f8312ae7a0c6bce39c4a3a /themes/danix-xyz-hacker/layouts
parent631505e0c403c9e2e4e5687ee121f0d1bd371b8c (diff)
downloaddanixxyz-71f577b171f6208fff7de47c7dad087955aa5fae.tar.gz
danixxyz-71f577b171f6208fff7de47c7dad087955aa5fae.zip
feat: i18n singular/plural post count on taxonomy listfix/taxonomy-layouts
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 <noreply@anthropic.com>
Diffstat (limited to 'themes/danix-xyz-hacker/layouts')
-rw-r--r--themes/danix-xyz-hacker/layouts/taxonomy/list.html4
1 files changed, 2 insertions, 2 deletions
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 }}