书架首页改成「在读」,书籍挪到 /bookshelf/books/

原来 /bookshelf/ 是书籍页,点顶部导航「书架」直接进书籍,
和「先看在读」的预期相反。

- /bookshelf/       -> 在读页(view="reading")
- /bookshelf/books/ -> 书籍页(view="books")
- 顶部导航「书架」保持指向 /bookshelf/,现在落在在读页,不用改导航
- 侧栏「馆藏」:在读 -> /bookshelf/,书籍 -> /bookshelf/books/
- /bookshelf/reading/ 这个临时 URL 撤掉(还没上线,没有外链负担)

因为导航的 isCurrent 用的是 startsWith,在 /bookshelf/books/ 下
顶部「书架」仍然是高亮状态,符合预期。

验证
- /bookshelf/       : title「在读 20 本」、id=reading、20 张卡、20 条进度条、
                      无书籍区块;侧栏「在读」带 aria-current
- /bookshelf/books/ : title「书籍」、id=books、已读完分组 6 张、无进度条;
                      侧栏「书籍」带 aria-current
- 顶部导航「书架」href = /bookshelf/
This commit is contained in:
dsh
2026-09-15 11:11:32 +08:00
parent a88bb536ab
commit 0719d8ba5d
7 changed files with 29 additions and 27 deletions
+1 -1
View File
@@ -1,5 +1,5 @@
{
"updatedAt": "2026-09-15T03:05:33.930Z",
"updatedAt": "2026-09-15T03:11:22.026Z",
"source": "weread",
"books": [
{