summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBigCoke233 <hi@guhub.cn>2026-01-29 23:40:07 +0800
committerBigCoke233 <hi@guhub.cn>2026-01-29 23:40:07 +0800
commit9b8d0993c5b53afc3926e92013a1c33c93b7984d (patch)
tree51da86f9e16d48d9f055d6629f1e8af1e52b627c
parent0d663d41745f374c10ba2dfdcf9d55865218d0d7 (diff)
fix: some multilingual issues
- hide Chinese-specific info in English posts page - fix archive page link
-rw-r--r--layouts/_partials/home/latest-posts.html2
-rw-r--r--layouts/section.html3
2 files changed, 4 insertions, 1 deletions
diff --git a/layouts/_partials/home/latest-posts.html b/layouts/_partials/home/latest-posts.html
index 72e3828a..0beab66b 100644
--- a/layouts/_partials/home/latest-posts.html
+++ b/layouts/_partials/home/latest-posts.html
@@ -9,7 +9,7 @@
{{ $firstPost = false }}
{{ end }}
<div>
- <a class="small-button" href="{{ if eq .Site.Language "zh" }}/archive{{ else }}{{ .Site.LanguagePrefix }}/posts{{ end }}">
+ <a class="small-button" href="{{ if eq .Site.Language.Lang "zh" }}/archive{{ else }}{{ .Site.LanguagePrefix }}/posts{{ end }}">
{{ T "seeArchive" }} →</a>
</div>
</section>
diff --git a/layouts/section.html b/layouts/section.html
index 444e52d3..a70c6cd1 100644
--- a/layouts/section.html
+++ b/layouts/section.html
@@ -10,7 +10,10 @@
<div class="markdown-body">{{ .Content }}</div>
{{ partial "section-categories" $pages }}
+
+ {{ if eq .Site.Language.Lang "zh" }}
<p class="text-secondary text-sm">*稻草人周刊也属于散文集,但为了方便查阅,周刊没有列在下面,请到<a href="/categories/稻草人周刊/">分类页面</a>查看周刊。</p>
+ {{ end }}
<!-- Post Archive List -->
{{ $remainingMonthsToOpen := 3 }}