feat: complete Plainleaf Chinese branding
CI / config (push) Canceled after 0s
CI / test-frontend (push) Canceled after 0s
CI / test-rust (push) Canceled after 0s
CI / test-e2e (push) Canceled after 0s
CI / test-e2e-release (push) Canceled after 0s
CI / build (push) Canceled after 0s
CI / release (push) Canceled after 0s
CI / docker (push) Canceled after 0s
CI / docker-website (push) Canceled after 0s

Replace visible SilverBullet branding, localize the primary login and editor surfaces, and seed new spaces with a Chinese home page while preserving Markdown file names and command IDs.

Co-Authored-By: Codex <noreply@anthropic.com>
This commit is contained in:
2026-08-12 14:55:58 +08:00
co-authored by Codex
parent c0ec027fba
commit 7928ebf4f2
28 changed files with 147 additions and 93 deletions
+15 -17
View File
@@ -1,24 +1,20 @@
Hello 👋!
# 首页
Welcome to the wondrous world of SilverBullet. A world that once you discover and appreciate, you’ll never want to leave.
欢迎使用 Plainleaf。这是一个基于原生 Markdown 文件的个人知识空间,你可以直接修改或删除本页内容。
_One of us!_
## 最近的随手记
If you’re confused and don’t know what to do, have a look at the [Manual](https://silverbullet.md/Manual), or perhaps more specifically, the [Getting Started](https://silverbullet.md/Getting%20Started) page. Got questions? Head over to [the community forums](https://community.silverbullet.md/).
This page serves purely as a starting point to not start with a blank slate. Feel free to ditch it completely or adjust it to your needs. This space is fully yours. Own it.
# Recent quick notes
${widgets.commandButton("Create quick note", "Quick Note")}
${widgets.commandButton("新建随手记", "Quick Note")}
${some(query[[
from p = index.subPages("Inbox")
order by p.lastModified desc
limit 10 select templates.fullPageItem(p)
]]) or "_No quick notes yet!_"}
]]) or "_还没有随手记_"}
# Recent journal entries
${widgets.commandButton("Today's entry", "Journal: Today")}
## 最近日记
${widgets.commandButton("今天的日记", "Journal: Today")}
${some(query[[
from j = index.pages(config.get("journal.tag"))
@@ -26,21 +22,23 @@ ${some(query[[
order by j.date desc
limit 14
select templates.pageItem(j)
]]) or "_No journal entries yet!_"}
]]) or "_还没有日记_"}
## 待办事项
# Recent incomplete tasks
${some(query[[
from t = index.tasks()
where not t.done
order by t.pageLastModified
desc limit 10
select templates.taskItem(t)
]]) or "_All tasks done!_"}
]]) or "_待办事项已全部完成_"}
## 最近修改
# Recently modified pages
${query[[
from p = index.contentPages()
order by p.lastModified desc
limit 10
select templates.fullPageItem(p)
select templates.fullPageItem(p)
]]}
+1 -1
View File
@@ -70,7 +70,7 @@ async fn boots_and_serves_ping_config_and_bundle() {
assert_eq!(index.status(), reqwest::StatusCode::OK);
let index_body = index.text().await.unwrap();
assert!(
index_body.contains("Welcome to the wondrous world of SilverBullet"),
index_body.contains("欢迎使用 Plainleaf"),
"got: {index_body}"
);