Skip to content

Commit ec39721

Browse files
committed
sitemap 多语言支持
- 使用 zh-Hans zh-Hant 替代 zh zh-TW
1 parent 0f0ae08 commit ec39721

26 files changed

+230
-66
lines changed

404.en.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
---
22
layout: splash
3+
sitemap: false
34
---
45

56
<div class="notice--danger">

404.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
---
22
layout: splash
3+
sitemap: false
34
---
45

56
<div class="notice--danger">

404.zh-TW.md renamed to 404.zh-Hant.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
---
22
layout: splash
3+
sitemap: false
34
---
45

56
<div class="notice--danger" id="not-found-content">
File renamed without changes.
File renamed without changes.
File renamed without changes.

_config.yml

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -123,10 +123,6 @@ defaults:
123123
path: assets
124124
values:
125125
i18n: false
126-
- scope:
127-
path: robots.txt
128-
values:
129-
i18n: false
130126

131127
# liquid:
132128
# error_mode: warn
@@ -152,8 +148,8 @@ minimal_mistakes_skin: default # "air", "aqua", "contrast", "dark", "dirt", "neo
152148
minimal_mistakes_skin_dark: dark
153149

154150
# Site Settings
155-
locale: zh
156-
locales: [zh, zh-TW, en]
151+
locale: zh-Hans
152+
locales: [zh-Hans, zh-Hant, en]
157153
# rtl:
158154
title: HMCL 文档
159155
# title_separator: -

_data/navigation/docs.zh-TW.yml renamed to _data/navigation/docs.zh-Hant.yml

Lines changed: 13 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -1,45 +1,45 @@
11
- title: 問題集合
22
children:
33
- title: 常見問題
4-
url: /zh-TW/faq.html
4+
url: /zh-Hant/faq.html
55
- title: 啟動器使用相關
6-
url: /zh-TW/launcher/
6+
url: /zh-Hant/launcher/
77
- title: 整合包幫助
8-
url: /zh-TW/modpack/
8+
url: /zh-Hant/modpack/
99
- title: 多人聯機幫助
10-
url: /zh-TW/multiplayer/
10+
url: /zh-Hant/multiplayer/
1111
- title: 使用者幫助
1212
children:
1313
- title: 版本隔離
14-
url: /zh-TW/launcher/isolation.html
14+
url: /zh-Hant/launcher/isolation.html
1515
description: 本文可以幫助你更好的分離版本間的地圖、模組等內容。
1616
- title: 設置離線皮膚
17-
url: /zh-TW/launcher/offline-skin.html
17+
url: /zh-Hant/launcher/offline-skin.html
1818
description: 本文將告訴你如何設置一個屬於自己的離線皮膚。
1919
- title: HMCL 的自動安裝使用教程
20-
url: /zh-TW/launcher/auto-installing.html
20+
url: /zh-Hant/launcher/auto-installing.html
2121
description: 本文將告訴你如何用 HMCL 安裝 Forge、Fabric、Fabric API、LiteLoader、Optifine 以及 模組 等。
2222
- title: 安裝光影
23-
url: /zh-TW/launcher/shader.html
23+
url: /zh-Hant/launcher/shader.html
2424
description: 本文將告訴你如何安裝光影。
2525
- title: 設置項詳解
26-
url: /zh-TW/launcher/set-item-details.html
26+
url: /zh-Hant/launcher/set-item-details.html
2727
description: 這篇文章針對 HMCL 的各個設置項進行了詳細的解釋。
2828
- title: 開髮者幫助
2929
children:
3030
- title: 製作 HMCL 格式的數據包
31-
url: /zh-TW/launcher/datapack.html
31+
url: /zh-Hant/launcher/datapack.html
3232
description: 本文將告訴你如何製作 HMCL 能夠識別的數據包(Datapacks)。
3333
- title: 製作整合包
34-
url: /zh-TW/modpack/serverpack.html
34+
url: /zh-Hant/modpack/serverpack.html
3535
description: 本文將告訴你如何製作整合包。
3636
- title: 添加默認 authlib-injector 驗証服務器
37-
url: /zh-TW/launcher/authlib-injector.html
37+
url: /zh-Hant/launcher/authlib-injector.html
3838
description: 本文將告訴你如何設置默認的驗証服務器。
3939
- title: 其它
4040
children:
4141
- title: 貢獻指南
42-
url: /zh-TW/contribution.html
42+
url: /zh-Hant/contribution.html
4343
- title: 官方網站
4444
url: https://hmcl.huangyuhui.net
4545
- title: 項目倉庫

_data/navigation/main.zh-TW.yml renamed to _data/navigation/main.zh-Hant.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
- title: 常見問題
2-
url: /zh-TW/faq.html
2+
url: /zh-Hant/faq.html
33
- title: 亮色
44
class: theme-color-switcher theme-color-light
55
- title: 暗色

_data/plugins/i18n/fallback.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
zh-TW: zh
1+
zh-Hant: zh-Hans

0 commit comments

Comments
 (0)