summaryrefslogtreecommitdiff
path: root/layouts
diff options
context:
space:
mode:
authorEltrac <hi@guhub.cn>2025-04-01 11:00:10 +0800
committerEltrac <hi@guhub.cn>2025-04-01 11:00:10 +0800
commitcc0748ec87f5cb7419f73b84fb710ee79570c038 (patch)
tree502dc6c45040f65e1d2f9075b3835d836e895705 /layouts
parent8dce78ec6ab20779b777c87c2fb15ab53a41ff84 (diff)
chore: translate post nav
Former-commit-id: c582880e3b11d86fc6943455570b805c88037bbb
Diffstat (limited to 'layouts')
-rw-r--r--layouts/partials/components/postnav.html6
1 files changed, 4 insertions, 2 deletions
diff --git a/layouts/partials/components/postnav.html b/layouts/partials/components/postnav.html
index 207ea99c..0d36d5b1 100644
--- a/layouts/partials/components/postnav.html
+++ b/layouts/partials/components/postnav.html
@@ -1,11 +1,13 @@
<div id="posts-list-navigation">
<ul>
<li class="{{ if eq "/" $.Page.RelPermalink }}active{{ end }}">
- <a href="/">最新</a>
+ <a href="{{ .Site.LanguagePrefix }}/">{{ T "postNav.latest" }}</a>
</li>
+ {{ if eq .Site.Language.Lang "zh" }}
<li class="{{ if eq "/categories/" $.Page.RelPermalink }}active{{ end }}">
- <a href="/categories">分类</a>
+ <a href="{{ .Site.LanguagePrefix }}/categories">{{ T "postNav.categories" }}</a>
</li>
+ {{ end }}
<li id="search-instruction">
<span>{{ T "searchInstruction" }}</span>
</li>