From 71f577b171f6208fff7de47c7dad087955aa5fae Mon Sep 17 00:00:00 2001 From: "Danilo M." Date: Thu, 16 Apr 2026 12:54:14 +0200 Subject: feat: i18n singular/plural post count on taxonomy list 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 --- themes/danix-xyz-hacker/layouts/taxonomy/list.html | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'themes/danix-xyz-hacker/layouts') 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 @@
{{ partial "article-list-item.html" . }} - {{ .Pages.Len }} + {{ i18n "postCount" .Pages.Len }}
{{ end }} @@ -33,7 +33,7 @@
{{ partial "article-list-item.html" . }} - {{ .Pages.Len }} + {{ i18n "postCount" .Pages.Len }}
{{ end }} -- cgit v1.2.3