[{"data":1,"prerenderedAt":252},["ShallowReactive",2],{"content:\u002F2026\u002Ffeed-search-comment":3,"surround:\u002F2026\u002Ffeed-search-comment":240},{"id":4,"title":5,"body":6,"categories":213,"date":215,"description":216,"draft":217,"extension":218,"image":219,"meta":220,"navigation":222,"path":223,"permalink":224,"published":224,"readingTime":225,"recommend":224,"references":224,"seo":230,"series":231,"sitemap":232,"stem":233,"tags":234,"type":238,"updated":215,"__hash__":239},"content\u002Fposts\u002F2026\u002Ffeed-search-comment.md","订阅、搜索与评论",{"type":7,"value":8,"toc":203},"minimark",[9,14,38,52,56,66,69,80,104,111,114,122,125,132,153,162,165,178,184,194],[10,11,13],"h2",{"id":12},"atom-订阅源","Atom 订阅源",[15,16,17,18,25,26,29,30,33,34,37],"p",{},"站点根路径的 ",[19,20,22],"a",{"href":21},"\u002Fatom.xml",[23,24,21],"code",{"code":21}," 是 Atom 订阅源，由服务端路由生成，最大文章数量在 ",[23,27,28],{"code":28},"blog.config.ts"," 的 ",[23,31,32],{"code":32},"feed.limit"," 中配置，订阅源样式（XSLT）可通过 ",[23,35,36],{"code":36},"feed.enableStyle"," 开关。",[39,40,43],"alert",{"title":41,"type":42},"绝对地址","info",[15,44,45,46,29,48,51],{},"订阅源要求站内链接使用绝对 URL，因此 ",[23,47,28],{"code":28},[23,49,50],{"code":50},"url"," 必须与实际访问地址（协议、主机、端口）保持一致。",[10,53,55],{"id":54},"opml-聚合","OPML 聚合",[15,57,58,61,62,65],{},[23,59,60],{"code":60},"\u002Fsubscriptions.opml"," 会把 ",[23,63,64],{"code":64},"app\u002Ffeeds.ts"," 中配置的友链订阅源聚合为一个 OPML 文件，方便导入阅读器。",[10,67,68],{"id":68},"友链页",[15,70,71,76,77,79],{},[19,72,74],{"href":73},"\u002Flink",[23,75,73],{"code":73}," 由 ",[23,78,64],{"code":64}," 的分组数据渲染：",[81,82,83,90,97],"ul",{},[84,85,86,87],"li",{},"每个分组是一段 ",[23,88,89],{"code":89},"FeedGroup",[84,91,92,93,96],{},"每条友链是 ",[23,94,95],{"code":95},"FeedEntry","，包含名称、描述、链接、订阅源、头像、技术栈等",[84,98,99,100,103],{},"可选的 ",[23,101,102],{"code":102},"error"," 字段会标注友链的异常状态",[15,105,106,107,110],{},"页面上还有两个分页：「我的博客信息」展示本站的友链名片与复制按钮，「申请友链」渲染 ",[23,108,109],{"code":109},"content\u002Flink.md","。",[10,112,113],{"id":113},"全站搜索",[15,115,116,117,121],{},"按 ",[118,119,120],"strong",{},"Ctrl \u002F Cmd + K"," 或点击左栏搜索框即可唤起搜索面板。它由 MiniSearch 在客户端建立索引，覆盖正式文章与草稿预览。",[10,123,124],{"id":124},"草稿与预览",[15,126,127,128,131],{},"未发布的文章放在 ",[23,129,130],{"code":130},"content\u002Fpreviews\u002F"," 下，它们会：",[81,133,134,143,146],{},[84,135,136,137,142],{},"出现在 ",[19,138,140],{"href":139},"\u002Fpreview",[23,141,139],{"code":139}," 页面",[84,144,145],{},"参与站内搜索",[84,147,148,149,152],{},"但",[118,150,151],{},"不会","出现在首页、归档与订阅源中",[15,154,155,156,161],{},"本仓库就放了一篇预览示例（访问 ",[19,157,159],{"href":158},"\u002Fpreviews\u002Fdraft-example",[23,160,158],{"code":158}," 查看），用来演示这一能力。",[10,163,164],{"id":164},"评论系统",[15,166,167,168,171,172,29,174,177],{},"Clarity 默认集成 Twikoo 评论。本站",[118,169,170],{},"未启用","评论：",[23,173,28],{"code":28},[23,175,176],{"code":176},"twikoo.envId"," 为空，评论组件会自动隐藏，不会残留「加载中」占位。",[15,179,180,181,183],{},"要启用评论，只需在 ",[23,182,28],{"code":28}," 中填写自部署的 Twikoo 地址：",[185,186,192],"pre",{"className":187,"code":189,"language":190,"meta":191},[188],"language-ts","twikoo: {\n\tenvId: 'https:\u002F\u002Fyour-twikoo.example.com\u002F',\n\tpreload: 'https:\u002F\u002Fyour-twikoo.example.com\u002F',\n},\n","ts","",[23,193,189],{"__ignoreMap":191},[15,195,196,197,29,199,202],{},"然后在 ",[23,198,28],{"code":28},[23,200,201],{"code":201},"scripts"," 中加入 Twikoo 的脚本即可。若偏好 GitHub Discussions，也可以改用 giscus 等无需自建服务的方案。",{"title":191,"searchDepth":204,"depth":204,"links":205},4,[206,208,209,210,211,212],{"id":12,"depth":207,"text":13},2,{"id":54,"depth":207,"text":55},{"id":68,"depth":207,"text":68},{"id":113,"depth":207,"text":113},{"id":124,"depth":207,"text":124},{"id":164,"depth":207,"text":164},[214],"站点配置","2026-10-03 10:50:00","介绍 Clarity 的 Atom 订阅源、OPML 聚合、友链页、全站搜索、草稿预览与可选的评论系统。",false,"md","\u002Fcovers\u002Ffeed-search-comment.jpg",{"slots":221},{},true,"\u002F2026\u002Ffeed-search-comment",null,{"text":226,"minutes":227,"time":228,"words":229},"3 min read",2.07,124200,414,{"title":5,"description":216},"站点搭建手册",{"loc":223},"posts\u002F2026\u002Ffeed-search-comment",[235,236,237],"订阅源","搜索","评论","tech","ypmQJJcH9KZnzFiKYh_Mylxg9Ed79D6EYCqEnExv6KE",[241,246],{"title":242,"path":243,"stem":244,"date":245,"type":238,"children":-1},"站点配置与个性化","\u002F2026\u002Fsite-config","posts\u002F2026\u002Fsite-config","2026-10-03 10:40:00",{"title":247,"path":248,"stem":249,"date":250,"type":251,"children":-1},"两种文章版式","\u002F2026\u002Fstory-example","posts\u002F2026\u002Fstory-example","2026-10-03 11:00:00","story",1791033609858]