From 89d53b05c0a8253ee534ddeed067b3e747e8251b Mon Sep 17 00:00:00 2001 From: Eltrac Date: Thu, 6 Feb 2025 16:15:31 +0800 Subject: refactor(i18n): exploit Hugo's built-in i18n feature --- layouts/section/posts.html | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'layouts/section/posts.html') diff --git a/layouts/section/posts.html b/layouts/section/posts.html index 03668a6d..de06b2aa 100644 --- a/layouts/section/posts.html +++ b/layouts/section/posts.html @@ -11,7 +11,7 @@

{{ .Key }} - {{ len .Pages }} TOTAL POSTS + {{ T "archivePage.postCountAnnual" (len .Pages) }}

{{ range .Pages.GroupByDate "January" }} @@ -19,7 +19,7 @@

{{ .Key }} - {{ len .Pages }} POSTS + {{ T "archivePage.postCountMonthly" (len .Pages) }}