Skip to content

Commit 83fa4d4

Browse files
committed
adjust i18n format
1 parent 4f7abf6 commit 83fa4d4

File tree

5 files changed

+84
-32
lines changed

5 files changed

+84
-32
lines changed

.gitignore

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -86,4 +86,6 @@ output/
8686
public/
8787
.hugo_build.lock
8888
.claude
89-
CLAUDE.md
89+
CLAUDE.md
90+
tmp/
91+
temp/

hugo.yaml

Lines changed: 80 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -28,11 +28,85 @@ languages:
2828
languageCode: en
2929
weight: 1
3030
title: Capslock Enhancement
31+
menu:
32+
sidebar:
33+
- identifier: simplified-chinese
34+
name: "简体中文 ↗"
35+
url: "/zh"
36+
weight: 10
37+
- identifier: github
38+
name: "GitHub Repo ↗"
39+
url: "https://github.com/Vonng/Capslock"
40+
weight: 11
41+
- identifier: karabiner
42+
name: "Karabiner-Element ↗"
43+
url: "https://karabiner-elements.pqrs.org/"
44+
weight: 12
45+
- identifier: download
46+
name: "Karabiner Download ↗"
47+
url: "https://github.com/pqrs-org/Karabiner-Elements/releases/download/v15.5.0/Karabiner-Elements-15.5.0.dmg"
48+
weight: 13
49+
- identifier: ke-gallery
50+
name: "Karabiner Gallery ↗"
51+
url: "https://ke-complex-modifications.pqrs.org/"
52+
weight: 14
53+
- identifier: vonng-blog
54+
name: "Ruohang Feng's Blog ↗"
55+
url: "https://vonng.com/en"
56+
weight: 15
57+
- identifier: pigsty
58+
name: "Pigsty Documentation ↗"
59+
url: "https://doc.pgsty.com"
60+
weight: 16
61+
- identifier: pgext
62+
name: "PG Extension Catalog ↗"
63+
url: "https://ext.pgsty.com"
64+
weight: 17
65+
3166
zh:
3267
languageName: 简体中文
3368
languageCode: zh
3469
weight: 2
3570
title: Capslock 强化改造
71+
params:
72+
hextra:
73+
footer:
74+
copyright: '<a class="hx:flex hx:text-sm hx:items-center hx:gap-1 hx:text-current" target="_blank" rel="noopener noreferrer" title="Vonng" href="https://vonng.com"><span>© 2025 冯若航 版权所有</span></a>'
75+
menu:
76+
sidebar:
77+
- identifier: english
78+
name: "English ↗"
79+
url: "/"
80+
weight: 10
81+
- identifier: github
82+
name: "GitHub 仓库 ↗"
83+
url: "https://github.com/Vonng/Capslock"
84+
weight: 11
85+
- identifier: karabiner
86+
name: "Karabiner-Element ↗"
87+
url: "https://karabiner-elements.pqrs.org/"
88+
weight: 12
89+
- identifier: download
90+
name: "Karabiner 下载 ↗"
91+
url: "https://github.com/pqrs-org/Karabiner-Elements/releases/download/v15.5.0/Karabiner-Elements-15.5.0.dmg"
92+
weight: 13
93+
- identifier: ke-gallery
94+
name: "Karabiner 陈列馆 ↗"
95+
url: "https://ke-complex-modifications.pqrs.org/"
96+
weight: 14
97+
- identifier: vonng-blog
98+
name: "博客:老冯云数 ↗"
99+
url: "https://vonng.com"
100+
weight: 15
101+
- identifier: pigsty
102+
name: "Pigsty 文档 ↗"
103+
url: "https://doc.pgsty.com/zh"
104+
weight: 16
105+
- identifier: pgext
106+
name: "PG 扩展目录 ↗"
107+
url: "https://ext.pgsty.com/zh"
108+
weight: 17
109+
36110

37111

38112
markup:
@@ -60,19 +134,14 @@ menu:
60134
params:
61135
icon: github
62136

63-
sidebar:
64-
- identifier: english
65-
name: "English ↗"
66-
url: "/en"
67-
weight: 1
68-
- identifier: simplified-chinese
69-
name: "简体中文 ↗"
70-
url: "/zh"
71-
weight: 2
72137

73138

74139
params:
75140
description: Tun Capslock into a hyper modifier key for your keyboard.
141+
142+
hextra:
143+
footer:
144+
copyright: '<a class="hx:flex hx:text-sm hx:items-center hx:gap-1 hx:text-current" target="_blank" rel="noopener noreferrer" title="Vonng" href="https://vonng.com/en"><span>© 2025 Ruohang Feng</span></a>'
76145

77146
navbar:
78147
displayTitle: true
@@ -93,8 +162,8 @@ params:
93162

94163
footer:
95164
enable: true
96-
displayCopyright: true
97-
displayPoweredBy: true
165+
displayCopyright: false
166+
displayPoweredBy: false
98167
width: normal
99168

100169
# Display the last modification date

i18n/en.yaml

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

i18n/zh-CN.yaml

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

i18n/zh.yaml

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,7 @@
11
backToTop: "返回顶部"
22
changeLanguage: "切换语言"
33
changeTheme: "切换主题"
4-
copyright: '<a class="hx:flex hx:text-sm hx:items-center hx:gap-1 hx:text-current" target="_blank" rel="noopener noreferrer" title="工信部备案查询" href="https://beian.miit.gov.cn/"><span>浙ICP备15016890-3号</span></a>'
5-
poweredBy: '<a class="hx:flex hx:text-sm hx:items-center hx:gap-1 hx:text-current" target="_blank" rel="noopener noreferrer" title="Vonng" href="https://vonng.com/"><span>© 2025 冯若航 版权所有</span></a>'
4+
copyright: '<a class="hx:flex hx:text-sm hx:items-center hx:gap-1 hx:text-current" target="_blank" rel="noopener noreferrer" title="Vonng" href="https://vonng.com"><span>© 2025 冯若航 版权所有</span></a>'
65
dark: "深色"
76
editThisPage: "在 GitHub 上编辑此页 →"
87
lastUpdated: "最后更新于"

0 commit comments

Comments
 (0)