Skip to content

Commit 222cfe9

Browse files
kevinten10claude
andcommitted
fix: 使用 absURL 修复 Hero 背景图路径,完善中文 i18n 翻译
- relURL 在子路径部署下未正确拼接前缀,改用 absURL - 从 Docsy 的 zh-cn.toml 复制完整翻译到 i18n/zh.toml Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
1 parent 42fd528 commit 222cfe9

2 files changed

Lines changed: 77 additions & 4 deletions

File tree

i18n/zh.toml

Lines changed: 76 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,81 @@
1+
# UI strings. Buttons and similar.
2+
3+
[ui_pager_prev]
4+
other = "上一页"
5+
6+
[ui_pager_next]
7+
other = "下一页"
8+
9+
[ui_read_more]
10+
other = "更多"
11+
112
[ui_search]
2-
other = "搜索"
13+
other = "站内搜索…"
14+
15+
# Used in sentences such as "Posted in News"
16+
[ui_in]
17+
other = ""
18+
19+
# Used in sentences such as "All Tags"
20+
[ui_all]
21+
other = "所有"
22+
23+
# Footer text
24+
[footer_all_rights_reserved]
25+
other = "保留所有权利"
326

427
[footer_privacy_policy]
528
other = "隐私政策"
629

7-
[ui_search_placeholder]
8-
other = "搜索文档..."
30+
31+
# Post (blog, articles etc.)
32+
[post_byline_by]
33+
other = "借由"
34+
[post_created]
35+
other = "创建"
36+
[post_last_mod]
37+
other = "最后修改"
38+
[post_edit_this]
39+
other = "编辑此页"
40+
[post_view_this]
41+
other = "查看页面源码"
42+
[post_create_child_page]
43+
other = "添加子页面"
44+
[post_create_issue]
45+
other = "提交文档问题"
46+
[post_create_project_issue]
47+
other = "提交项目问题"
48+
[post_posts_in]
49+
other = "撰写于"
50+
[post_reading_time]
51+
other = "分钟阅读"
52+
[post_less_than_a_minute_read]
53+
other = "少于1分钟"
54+
55+
# Print support
56+
[print_printable_section]
57+
other = "这是本节的多页打印视图。"
58+
[print_click_to_print]
59+
other = "点击此处打印"
60+
[print_show_regular]
61+
other = "返回本页常规视图"
62+
[print_entire_section]
63+
other = "整节打印"
64+
65+
# Community
66+
[community_join]
67+
other = "加入 {{ .Site.Title }} 社区"
68+
[community_introduce]
69+
other = "{{ .Site.Title }} 是一个开源项目,社区中的任何人都可以使用、改善和尽情使用它。我们很期待你能加入我们!下面是如何查看最近更新以及参与我们的一些方式。"
70+
[community_learn]
71+
other = "学习和沟通"
72+
[community_using]
73+
other = "正在或打算使用 {{ .Site.Title }} ?获取更多信息:"
74+
[community_develop]
75+
other = "开发和贡献"
76+
[community_contribute]
77+
other = "如果你想通过为 {{ .Site.Title }} 贡献更多参与,请在此处加入我们:"
78+
[community_how_to]
79+
other = "你可以了解如何为 {{ .Site.Title }} 做出贡献,请参考我们的"
80+
[community_guideline]
81+
other = "贡献指南"

layouts/partials/hooks/head-end.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@
3737
.capa-hero__bg {
3838
position: absolute;
3939
inset: 0;
40-
background-image: url('{{ "images/homepage/hero-bg.png" | relURL }}');
40+
background-image: url('{{ "images/homepage/hero-bg.png" | absURL }}');
4141
background-size: cover;
4242
background-position: center 30%;
4343
opacity: 0.6;

0 commit comments

Comments
 (0)