summaryrefslogtreecommitdiff
path: root/layouts/partials
diff options
context:
space:
mode:
authorEltrac <hi@guhub.cn>2025-05-16 15:21:10 +0800
committerEltrac <hi@guhub.cn>2025-05-16 15:21:10 +0800
commit90e305c8addbb3f814e219633e9b3d75c2d921da (patch)
treecc5a087f948460f27c60c1101b43131451321dc3 /layouts/partials
parent4c04d9c5bfd031d3966856f55f0d7e3f6d8a25f7 (diff)
feat: add featured post section
Former-commit-id: ab6318704c4a5f22793fb738662bb2201fa89082
Diffstat (limited to 'layouts/partials')
-rw-r--r--layouts/partials/components/postnav.html3
1 files changed, 3 insertions, 0 deletions
diff --git a/layouts/partials/components/postnav.html b/layouts/partials/components/postnav.html
index 95f38a72..5a00797c 100644
--- a/layouts/partials/components/postnav.html
+++ b/layouts/partials/components/postnav.html
@@ -4,6 +4,9 @@
<a href="{{ .Site.LanguagePrefix }}/">{{ T "postNav.latest" }}</a>
</li>
{{ if eq .Site.Language.Lang "zh" }}
+ <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 }}">
<a href="{{ .Site.LanguagePrefix }}/categories">{{ T "postNav.categories" }}</a>
</li>