Files
NewBlog/src/data/reading.json
T
dsh ef72d52de4 标题后的 # 锚点:补上缺失的样式,并修跳转定位与无障碍
问题
- 插件 src/plugins/satteri/autolink-headings.mjs 会在每个标题末尾追加
  <a class="anchor"><span class="anchor-icon">#</span></a>,但项目里从来
  没给 .anchor / .anchor-icon 写过任何样式(源码和产物 CSS 都查过,零条规则)
- 结果是那个 # 以纯文本形式常驻显示在每一个标题后面,看起来像 Markdown 语法错误
- 另外标题有 id 却没有 scroll-margin-top,点 # 跳过去标题顶部紧贴视口上沿,
  正好藏在 69px 高的 sticky 导航栏下面

改法
- global.css 补样式:默认 opacity:0 隐藏,鼠标悬停标题(或键盘聚焦锚点)才浮现,
  悬停锚点本身转朱红;触屏没有 hover,直接 display:none(跨标题跳转用目录即可)
- 补 :is(h1..h6)[id] { scroll-margin-top: calc(var(--header-h,69px) + 1.25rem) }
- 插件里给锚点补无障碍名称:aria-label="链接到「标题文字」",图标加 aria-hidden。
  否则读屏会连着念二十几个「#,链接」,完全不知道跳到哪

踩到的坑(已写进操作指南)
Astro 的文章缓存只在 markdown 内容变化时失效,改插件代码不会重新渲染,
必须先 rm -rf node_modules/.astro .astro。第一次改完插件产物没变就是这个原因。

验证:清缓存重建后,产物 HTML 里锚点带上了 aria-label 与 aria-hidden;
产物 CSS 里 .anchor 的 5 条规则 + scroll-margin-top 均正确,
@media(hover:none) 的作用域也确认无误
2026-09-17 18:37:20 +08:00

371 lines
14 KiB
JSON

{
"updatedAt": "2026-09-17T10:36:53.871Z",
"source": "weread",
"books": [
{
"bookId": "26678299",
"title": "大师和玛格丽特(果麦经典)",
"author": "布尔加科夫",
"category": "文学-外国文学",
"cover": "https://wfqqreader-1252317822.image.myqcloud.com/cover/299/26678299/t6_26678299.jpg",
"progress": 35,
"finished": false,
"lastReadAt": "2026-09-16T15:43:49.000Z",
"startedAt": "2026-09-04T16:07:07.000Z",
"finishedAt": null,
"readingSeconds": 4673,
"deepLink": "https://weread.qq.com/book-detail?type=1&v=34c329807197141b34cf1db"
},
{
"bookId": "3300048195",
"title": "正面管教(修订版)",
"author": "简•尼尔森",
"category": "教育学习-育儿",
"cover": "https://cdn.weread.qq.com/weread/cover/33/cpplatform_nxkyuocaxczycncqyfugye/t6_cpplatform_nxkyuocaxczycncqyfugye1675999568.jpg",
"progress": 0,
"finished": false,
"lastReadAt": "2026-09-09T05:05:04.000Z",
"startedAt": null,
"finishedAt": null,
"readingSeconds": 20,
"deepLink": "https://weread.qq.com/book-detail?type=1&v=bbc32a50813ab7953g01522a"
},
{
"bookId": "3300176703",
"title": "关于建国以来党的若干历史问题的决议",
"author": "中国共产党第十一届中央委员会",
"category": "政治军事-政治",
"cover": "https://cdn.weread.qq.com/weread/cover/6/cpplatform_bxvnmtl7wfftjdyxqgmpxt/t6_cpplatform_bxvnmtl7wfftjdyxqgmpxt1762827216.jpg",
"progress": 77,
"finished": false,
"lastReadAt": "2026-09-07T09:27:28.000Z",
"startedAt": "2026-06-03T15:44:54.000Z",
"finishedAt": "2026-06-09T11:02:09.000Z",
"readingSeconds": 2021,
"deepLink": "https://weread.qq.com/book-detail?type=1&v=de6321e0813abab86g01378d"
},
{
"bookId": "3300020417",
"title": "西线无战事(译文经典)",
"author": "雷马克",
"category": "文学-外国文学",
"cover": "https://cdn.weread.qq.com/weread/cover/17/3300020417/t6_3300020417.jpg",
"progress": 100,
"finished": true,
"lastReadAt": "2026-09-06T09:45:42.000Z",
"startedAt": "2026-08-08T16:51:53.000Z",
"finishedAt": "2026-09-06T05:26:12.000Z",
"readingSeconds": 6190,
"deepLink": "https://weread.qq.com/book-detail?type=1&v=a1932750813ab6e79g017e78"
},
{
"bookId": "23796324",
"title": "昨日的世界",
"author": "茨威格",
"category": "文学-外国文学",
"cover": "https://cdn.weread.qq.com/weread/cover/58/YueWen_23796324/t6_YueWen_23796324.jpg",
"progress": 28,
"finished": false,
"lastReadAt": "2026-09-06T05:26:38.000Z",
"startedAt": "2026-08-05T16:49:22.000Z",
"finishedAt": null,
"readingSeconds": 7639,
"deepLink": "https://weread.qq.com/book-detail?type=1&v=80a324f0716b1a6480af682"
},
{
"bookId": "3300189057",
"title": "我弥留之际(果麦经典)",
"author": "[美]威廉·福克纳",
"category": "精品小说-社会小说",
"cover": "https://cdn.weread.qq.com/weread/cover/35/cpplatform_bypxixudgppfdrnvcvfuyq/t6_cpplatform_bypxixudgppfdrnvcvfuyq1766719527.jpg",
"progress": 13,
"finished": false,
"lastReadAt": "2026-06-15T16:24:59.000Z",
"startedAt": "2026-06-05T15:43:45.000Z",
"finishedAt": null,
"readingSeconds": 589,
"deepLink": "https://weread.qq.com/book-detail?type=1&v=b4432330813abb059g01728a"
},
{
"bookId": "23914527",
"title": "树莓派开始,玩转Linux",
"author": "Vamei 周昕梓",
"category": "计算机-计算机综合",
"cover": "https://cdn.weread.qq.com/weread/cover/55/YueWen_23914527/t6_YueWen_23914527.jpg",
"progress": 97,
"finished": false,
"lastReadAt": "2026-06-10T16:14:02.000Z",
"startedAt": "2026-04-17T15:59:58.000Z",
"finishedAt": null,
"readingSeconds": 14309,
"deepLink": "https://weread.qq.com/book-detail?type=1&v=140329d0716ce81f140468e"
},
{
"bookId": "3300151878",
"title": "从Python开始学编程",
"author": "Vamei",
"category": "计算机-计算机综合",
"cover": "https://cdn.weread.qq.com/weread/cover/12/cpplatform_cmcqasqymymeqejem95ssq/t6_cpplatform_cmcqasqymymeqejem95ssq1751968250.jpg",
"progress": 0,
"finished": false,
"lastReadAt": "2026-06-10T16:13:58.000Z",
"startedAt": null,
"finishedAt": null,
"readingSeconds": 89,
"deepLink": "https://weread.qq.com/book-detail?type=1&v=32f329e0813aba1d3g018fee"
},
{
"bookId": "3300053824",
"title": "改变世界的17个方程",
"author": "伊恩·斯图尔特",
"category": "科学技术-自然科学",
"cover": "https://cdn.weread.qq.com/weread/cover/94/cpplatform_wxkigsn3nwuexqw4pspab6/t6_cpplatform_wxkigsn3nwuexqw4pspab61679905263.jpg",
"progress": 100,
"finished": true,
"lastReadAt": "2026-06-07T10:50:15.000Z",
"startedAt": "2026-05-24T13:35:18.000Z",
"finishedAt": "2026-06-06T16:01:25.000Z",
"readingSeconds": 7391,
"deepLink": "https://weread.qq.com/book-detail?type=1&v=fb8320d0813ab7b86g01401c"
},
{
"bookId": "3300028287",
"title": "羊道·深山夏牧场(羊道终章,游牧生活的漫长告别)",
"author": "李娟",
"category": "精品小说-社会小说",
"cover": "https://cdn.weread.qq.com/weread/cover/82/cpPlatform_kz1K9Wo8Sh3FUsdhx8eckN/t6_cpPlatform_kz1K9Wo8Sh3FUsdhx8eckN.jpg",
"progress": 5,
"finished": false,
"lastReadAt": "2026-06-07T05:15:01.000Z",
"startedAt": "2026-05-06T23:27:18.000Z",
"finishedAt": null,
"readingSeconds": 303,
"deepLink": "https://weread.qq.com/book-detail?type=1&v=ec0325c0813ab718cg017a62"
},
{
"bookId": "3300201219",
"title": "AI 时代的认知觉醒",
"author": "知识重构者",
"category": "心理-认知与行为",
"cover": "https://cdn.weread.qq.com/weread/cover/46/cpplatform_t658eoeazmalyo2rw3pskp/t6_cpplatform_t658eoeazmalyo2rw3pskp1776046889.jpg",
"progress": 16,
"finished": false,
"lastReadAt": "2026-06-06T18:14:57.000Z",
"startedAt": "2026-05-02T08:55:25.000Z",
"finishedAt": null,
"readingSeconds": 1591,
"deepLink": "https://weread.qq.com/book-detail?type=1&v=ec332c80813abb519g019b32"
},
{
"bookId": "38894307",
"title": "谈美",
"author": "朱光潜",
"category": "哲学宗教-美学",
"cover": "https://cdn.weread.qq.com/weread/cover/48/YueWen_38894307/t6_YueWen_38894307.jpg",
"progress": 3,
"finished": false,
"lastReadAt": "2026-06-01T17:12:29.000Z",
"startedAt": null,
"finishedAt": null,
"readingSeconds": 106,
"deepLink": "https://weread.qq.com/book-detail?type=1&v=da032ef072517ae3da039f2"
},
{
"bookId": "27126747",
"title": "杜邦安全管理",
"author": "崔政斌 张美元 周礼庆编著",
"category": "经济理财-管理",
"cover": "https://cdn.weread.qq.com/weread/cover/98/YueWen_27126747/t6_YueWen_27126747.jpg",
"progress": 10,
"finished": false,
"lastReadAt": "2026-05-13T00:11:25.000Z",
"startedAt": "2025-01-07T10:42:41.000Z",
"finishedAt": null,
"readingSeconds": 1321,
"deepLink": "https://weread.qq.com/book-detail?type=1&v=a3d32d20719debdba3d5de1"
},
{
"bookId": "674073",
"title": "沧浪之水",
"author": "阎真",
"category": "精品小说-影视原著",
"cover": "https://cdn.weread.qq.com/weread/cover/49/yuewen_674073/t6_yuewen_6740731774011595.jpg",
"progress": 1,
"finished": false,
"lastReadAt": "2026-04-19T15:00:03.000Z",
"startedAt": null,
"finishedAt": null,
"readingSeconds": 291,
"deepLink": "https://weread.qq.com/book-detail?type=1&v=7c632ef05a49197c62b53f0"
},
{
"bookId": "26943492",
"title": "每天5分钟玩转Docker容器技术",
"author": "CloudMan",
"category": "计算机-计算机综合",
"cover": "https://cdn.weread.qq.com/weread/cover/41/YueWen_26943492/t6_YueWen_26943492.jpg",
"progress": 4,
"finished": false,
"lastReadAt": "2026-04-18T15:44:35.000Z",
"startedAt": null,
"finishedAt": null,
"readingSeconds": 160,
"deepLink": "https://weread.qq.com/book-detail?type=1&v=93d325a0719b200493d5ba9"
},
{
"bookId": "40055543",
"title": "置身事内:中国政府与经济发展",
"author": "兰小欢",
"category": "经济理财-财经",
"cover": "https://cdn.weread.qq.com/weread/cover/52/YueWen_40055543/t6_YueWen_40055543.jpg",
"progress": 13,
"finished": false,
"lastReadAt": "2026-03-28T10:03:33.000Z",
"startedAt": "2024-12-21T00:52:19.000Z",
"finishedAt": null,
"readingSeconds": 2916,
"deepLink": "https://weread.qq.com/book-detail?type=1&v=2a332d10726332f72a34943"
},
{
"bookId": "41100356",
"title": "挽救计划(同名电影原著)",
"author": "[美]安迪·威尔",
"category": "精品小说-科幻小说",
"cover": "https://cdn.weread.qq.com/weread/cover/0/yuewen_41100356/t6_yuewen_411003561772520377.jpg",
"progress": 100,
"finished": true,
"lastReadAt": "2026-03-28T10:01:44.000Z",
"startedAt": "2026-03-20T14:42:26.000Z",
"finishedAt": "2026-03-22T16:49:18.000Z",
"readingSeconds": 15371,
"deepLink": "https://weread.qq.com/book-detail?type=1&v=6d232640727324446d2e978"
},
{
"bookId": "31515008",
"title": "消失的13级台阶",
"author": "高野和明",
"category": "精品小说-悬疑推理",
"cover": "https://wfqqreader-1252317822.image.myqcloud.com/cover/8/31515008/t6_31515008.jpg",
"progress": 100,
"finished": true,
"lastReadAt": "2026-03-25T17:32:16.000Z",
"startedAt": "2026-03-23T09:59:40.000Z",
"finishedAt": "2026-03-25T17:30:10.000Z",
"readingSeconds": 4246,
"deepLink": "https://weread.qq.com/book-detail?type=1&v=8033247071e0e1808035ab9"
},
{
"bookId": "3300175025",
"title": "此刻是春天(微信读书特别版)",
"author": "卢思浩",
"category": "精品小说-治愈小说",
"cover": "https://cdn.weread.qq.com/weread/cover/4/cpplatform_3hsoybvrwapq1efqha1mvz/t6_cpplatform_3hsoybvrwapq1efqha1mvz1762325065.jpg",
"progress": 4,
"finished": false,
"lastReadAt": "2026-01-11T10:35:21.000Z",
"startedAt": null,
"finishedAt": null,
"readingSeconds": 196,
"deepLink": "https://weread.qq.com/book-detail?type=1&v=b0b32630813abaadeg0157d1"
},
{
"bookId": "39280063",
"title": "博弈论:每个人都能成为决策高手(《人民日报》推荐)",
"author": "蒋文华",
"category": "经济理财-财经",
"cover": "https://cdn.weread.qq.com/weread/cover/77/YueWen_39280063/t6_YueWen_39280063.jpg",
"progress": 0,
"finished": false,
"lastReadAt": "2025-10-29T00:43:47.000Z",
"startedAt": null,
"finishedAt": null,
"readingSeconds": 272,
"deepLink": "https://weread.qq.com/book-detail?type=1&v=5d332c2072575dbf5d33fe2"
},
{
"bookId": "721367",
"title": "白说",
"author": "白岩松",
"category": "文学-散文杂著",
"cover": "https://wfqqreader-1252317822.image.myqcloud.com/cover/367/721367/t6_721367.jpg",
"progress": 100,
"finished": true,
"lastReadAt": "2025-10-29T00:43:35.000Z",
"startedAt": "2019-07-19T04:20:51.000Z",
"finishedAt": "2019-07-24T05:23:50.000Z",
"readingSeconds": 7718,
"deepLink": "https://weread.qq.com/book-detail?type=1&v=4e3321805b01d74e3fa7481"
},
{
"bookId": "3300024284",
"title": "毛泽东选集(全四卷)",
"author": "",
"category": "政治军事-政治",
"cover": "https://cdn.weread.qq.com/weread/cover/84/3300024284/t6_3300024284.jpg",
"progress": 1,
"finished": false,
"lastReadAt": "2025-10-18T09:21:26.000Z",
"startedAt": "2025-03-26T09:48:02.000Z",
"finishedAt": null,
"readingSeconds": 611,
"deepLink": "https://weread.qq.com/book-detail?type=1&v=2bb32ff0813ab6ffcg014315"
},
{
"bookId": "3300120749",
"title": "不被大风吹倒(莫言陪女儿高考也这样! )",
"author": "莫言",
"category": "文学-散文杂著",
"cover": "https://cdn.weread.qq.com/weread/cover/60/cpplatform_n3ezmfhymkjcbuuszk8bgy/t6_cpplatform_n3ezmfhymkjcbuuszk8bgy1731488438.jpg",
"progress": 10,
"finished": false,
"lastReadAt": "2024-12-21T00:51:54.000Z",
"startedAt": "2024-12-17T04:42:59.000Z",
"finishedAt": null,
"readingSeconds": 549,
"deepLink": "https://weread.qq.com/book-detail?type=1&v=2c032e80813ab95aag019524"
},
{
"bookId": "673157",
"title": "浴血荣光(同名电视剧原著)",
"author": "金一南",
"category": "文学-纪实文学",
"cover": "https://cdn.weread.qq.com/weread/cover/25/YueWen_673157/t6_YueWen_673157.jpg",
"progress": 6,
"finished": false,
"lastReadAt": "2020-04-09T07:29:49.000Z",
"startedAt": "2020-04-09T07:23:34.000Z",
"finishedAt": null,
"readingSeconds": 728,
"deepLink": "https://weread.qq.com/book-detail?type=1&v=814322405a4585814beb03d"
},
{
"bookId": "807264",
"title": "微纪元",
"author": "刘慈欣",
"category": "精品小说-科幻小说",
"cover": "https://wfqqreader-1252317822.image.myqcloud.com/cover/264/807264/t6_807264.jpg",
"progress": 100,
"finished": true,
"lastReadAt": "2019-10-15T15:30:42.000Z",
"startedAt": "2019-08-07T02:20:48.000Z",
"finishedAt": "2019-08-07T07:41:59.000Z",
"readingSeconds": 7494,
"deepLink": "https://weread.qq.com/book-detail?type=1&v=770328405c5160770c987ae"
},
{
"bookId": "812443",
"title": "白鹿原",
"author": "陈忠实",
"category": "精品小说-年代小说",
"cover": "https://cdn.weread.qq.com/weread/cover/78/YueWen_812443/t6_YueWen_812443.jpg",
"progress": 0,
"finished": false,
"lastReadAt": "2017-05-30T00:49:56.000Z",
"startedAt": null,
"finishedAt": null,
"readingSeconds": 137,
"deepLink": "https://weread.qq.com/book-detail?type=1&v=47532ac05c659b47554a825"
}
]
}