summaryrefslogtreecommitdiff
path: root/layouts/section
diff options
context:
space:
mode:
authorEltrac <hi@guhub.cn>2025-02-06 16:15:31 +0800
committerEltrac <hi@guhub.cn>2025-02-06 16:15:31 +0800
commit89d53b05c0a8253ee534ddeed067b3e747e8251b (patch)
treeee4e8285968fa8a5b958d4385a78108151f78133 /layouts/section
parent2089b11533ed0a630cb8ce8ff34d72fd24549b37 (diff)
refactor(i18n): exploit Hugo's built-in i18n feature
Diffstat (limited to 'layouts/section')
-rw-r--r--layouts/section/posts.html4
1 files changed, 2 insertions, 2 deletions
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 @@
<section class="posts-year-archive">
<h1 class="posts-year-title">
{{ .Key }}
- <small class="font-mono">{{ len .Pages }} TOTAL POSTS</small>
+ <small class="font-mono">{{ T "archivePage.postCountAnnual" (len .Pages) }}</small>
</h1>
{{ range .Pages.GroupByDate "January" }}
@@ -19,7 +19,7 @@
<summary>
<h2 class="posts-month-title">
{{ .Key }}
- <small class="font-mono">{{ len .Pages }} POSTS</small>
+ <small class="font-mono">{{ T "archivePage.postCountMonthly" (len .Pages) }}</small>
</h2>
</summary>
<ul>