Skip to content

Commit 4ec275c

Browse files
author
lzm
committed
revert(blog): drop English language — back to Chinese-only
Tried bilingual with the giscus-debug post translated, but the language switcher wasn't actually wiring up correctly (English link went to /en/ instead of /en/posts/<slug>/), and one English post isn't enough to justify the complexity. Changes: - hugo.yaml: remove 'en' block under languages - delete content/en/ entirely The English version of the new post is preserved in git history (commit f0c3bd8) if we ever want to revive bilingual.
1 parent f0c3bd8 commit 4ec275c

3 files changed

Lines changed: 4 additions & 237 deletions

File tree

content/en/_index.md

Lines changed: 0 additions & 3 deletions
This file was deleted.

content/en/posts/Hugo博客搭建踩坑记录.md

Lines changed: 0 additions & 221 deletions
This file was deleted.

hugo.yaml

Lines changed: 4 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -9,27 +9,18 @@ title: LiMing编程笔记
99
defaultContentLanguage: zh-cn
1010
defaultContentLanguageInSubdir: false
1111

12-
# ---------- 多语言 ----------
13-
# 中文为默认语言,内容在 /posts/...(URL 不变);英文内容放 content/en/...
14-
# 渲染到 /en/posts/...。翻译某个 post 时新建同名 *.en.md 并加相同的
15-
# translationKey,PaperMod 的 language toggle 会自动关联
12+
# ---------- 单语(中文) ----------
13+
# 之前试过加英文(content/en/)但语言切换器没真正起效
14+
# 而且只有一篇英文 post,没意义。后续如果再开双语,
15+
# 把这段注释换回多语言配置 + 重建 content/en/ 即可
1616
languages:
1717
zh-cn:
1818
languageName: 简体中文
1919
weight: 1
2020
languageCode: zh-CN
2121
title: "LiMing编程笔记"
2222
params:
23-
displayFullLangName: true
2423
description: "技术学习笔记 · 实战 · 调优"
25-
en:
26-
languageName: English
27-
weight: 2
28-
languageCode: en-US
29-
title: "LiMing's Coding Notes"
30-
params:
31-
displayFullLangName: true
32-
description: "Tech learning notes · practical · tuned"
3324

3425
# ---------- Taxonomies ----------
3526
# Hugo 默认是 categories + tags;显式列出以保留默认并新增 series。

0 commit comments

Comments
 (0)