summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEltrac <hi@guhub.cn>2025-05-16 15:28:44 +0800
committerEltrac <hi@guhub.cn>2025-05-16 15:28:44 +0800
commita411d5b8c65d768911767f5a939d394682ce2402 (patch)
treee8c2f581e32f2b0127e0a54299f71de35deb26b2
parentb2e923007dd0c429a7d96f5c4ed69a0d13865ef0 (diff)
fix: featured post nav link never active
Former-commit-id: 7224bbffa7f0c06e71b75ca70658f629e8710f7f
-rw-r--r--layouts/partials/components/postnav.html2
1 files changed, 1 insertions, 1 deletions
diff --git a/layouts/partials/components/postnav.html b/layouts/partials/components/postnav.html
index 5a00797c..95b58954 100644
--- a/layouts/partials/components/postnav.html
+++ b/layouts/partials/components/postnav.html
@@ -4,7 +4,7 @@
<a href="{{ .Site.LanguagePrefix }}/">{{ T "postNav.latest" }}</a>
</li>
{{ if eq .Site.Language.Lang "zh" }}
- <li class="{{ if eq "/featured" $.Page.RelPermalink }}active{{ end }}">
+ <li class="{{ if eq "/featured/" $.Page.RelPermalink }}active{{ end }}">
<a href="{{ .Site.LanguagePrefix }}/featured">{{ T "postNav.featured" }}</a>
</li>
<li class="{{ if eq "/categories/" $.Page.RelPermalink }}active{{ end }}">