书架首页改成「在读」,书籍挪到 /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:
@@ -279,8 +279,10 @@ prose-p:leading-[1.78] md:prose-p:leading-[1.85]
|
||||
|
||||
| 页面 | 路径 | 内容 | 侧栏数量 |
|
||||
|---|---|---|---|
|
||||
| 书籍 | `/bookshelf/` | 手工书单(`books.json`)+ 微信读书已读完 | 两者相加 |
|
||||
| 在读 | `/bookshelf/reading/` | 微信读书里没读完的 | 未读完本数 |
|
||||
| 在读 | `/bookshelf/` | 微信读书里没读完的 | 未读完本数 |
|
||||
| 书籍 | `/bookshelf/books/` | 手工书单(`books.json`)+ 微信读书已读完 | 两者相加 |
|
||||
|
||||
顶部导航「书架」指向 `/bookshelf/`,所以点进来先落在**在读**页。
|
||||
|
||||
两块内容:
|
||||
|
||||
|
||||
Reference in New Issue
Block a user