Skip to content

Commit 5a9c1d7

Browse files
authored
支持多语言
1 parent ebaf792 commit 5a9c1d7

File tree

4 files changed

+39
-31
lines changed

4 files changed

+39
-31
lines changed

src/index-en_US.json

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -55,15 +55,5 @@
5555
"url": "https://docs.hmcl.net/modpack/serverpack.html"
5656
}
5757
]
58-
},
59-
{
60-
"title": "Multiplayer",
61-
"items": [
62-
{
63-
"title": "Multiplayer Service Maintenance",
64-
"subtitle": "Maintenance of multiplayer services",
65-
"url": "https://www.bilibili.com/read/cv19553778"
66-
}
67-
]
6858
}
6959
]

src/index-zh_TW.json

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -48,15 +48,5 @@
4848
"url": "https://docs.hmcl.net/modpack/serverpack.html"
4949
}
5050
]
51-
},
52-
{
53-
"title": "多人連線",
54-
"items": [
55-
{
56-
"title": "多人連線服務維護",
57-
"subtitle": "多人連線服務維護",
58-
"url": "https://www.bilibili.com/read/cv19553778"
59-
}
60-
]
6151
}
6252
]

src/index.json

Lines changed: 1 addition & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -63,15 +63,5 @@
6363
"url": "https://docs.hmcl.net/modpack/error-handbook.html"
6464
}
6565
]
66-
},
67-
{
68-
"title": "多人联机",
69-
"items": [
70-
{
71-
"title": "多人联机服务维护",
72-
"subtitle": "多人联机服务维护",
73-
"url": "https://www.bilibili.com/read/cv19553778"
74-
}
75-
]
7666
}
77-
]
67+
]

src/layouts/default.html

Lines changed: 38 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,38 @@
1+
---
2+
layout: compress
3+
---
4+
5+
<!doctype html>
6+
{% include copyright.html %}
7+
<html lang="{{ site.locale | replace: "_", "-" | default: "en" }}" class="no-js">
8+
<head>
9+
{% include head.html %}
10+
{% include head/custom.html %}
11+
</head>
12+
13+
<body class="layout--{{ page.layout | default: layout.layout }}{% if page.classes or layout.classes %}{{ page.classes | default: layout.classes | join: ' ' | prepend: ' ' }}{% endif %}" dir="{% if site.rtl %}rtl{% else %}ltr{% endif %}">
14+
{% include_cached skip-links.html %}
15+
{% include_cached masthead.html %}
16+
17+
<div class="initial-content">
18+
{{ content }}
19+
{% include after-content.html %}
20+
</div>
21+
22+
{% if site.search == true %}
23+
<div class="search-content">
24+
{% include_cached search/search_form.html %}
25+
</div>
26+
{% endif %}
27+
28+
<div id="footer" class="page__footer">
29+
<footer>
30+
{% include footer/custom.html %}
31+
{% include_cached footer.html %}
32+
</footer>
33+
</div>
34+
35+
{% include scripts.html %}
36+
</body>
37+
38+
</html>

0 commit comments

Comments
 (0)