[{"data":1,"prerenderedAt":218},["ShallowReactive",2],{"content:\u002F2026\u002Fcollections":3,"surround:\u002F2026\u002Fcollections":207},{"id":4,"title":5,"body":6,"categories":182,"date":184,"description":185,"draft":186,"extension":187,"image":188,"meta":189,"navigation":191,"path":192,"permalink":193,"published":193,"readingTime":194,"recommend":193,"references":193,"seo":199,"series":100,"sitemap":200,"stem":201,"tags":202,"type":205,"updated":184,"__hash__":206},"content\u002Fposts\u002F2026\u002Fcollections.md","合集与系列文章",{"type":7,"value":8,"toc":173},"minimark",[9,13,21,38,41,47,57,63,66,75,91,94,108,112,137,140,143],[10,11,12],"h2",{"id":12},"什么是合集",[14,15,16,20],"p",{},[17,18,19],"strong",{},"合集","（也叫「系列」）用于把一组有内在顺序或共同主题的文章组织到一起。当一篇文章属于某个系列时，在这个系列内阅读就能顺藤摸瓜地看完整条脉络。",[22,23,26],"alert",{"title":24,"type":25},"这是本站扩展的能力","warning",[14,27,28,29,33,34,37],{},"上游 Clarity 主题本身没有「合集」概念。本站为演示与实用补充了：内容 schema 新增 ",[30,31,32],"code",{"code":32},"series"," 字段、查询索引同步该字段、以及一个 ",[30,35,36],{"code":36},"\u002Fcollections"," 页面。相关改动都已在变更文档中标注，方便与上游合并。",[10,39,40],{"id":40},"用法",[14,42,43,44,46],{},"只需在 Front matter 里填写 ",[30,45,32],{"code":32},"：",[48,49,55],"pre",{"className":50,"code":52,"language":53,"meta":54},[51],"language-yaml","---\ntitle: 合集与系列文章\ncategories: [功能演示]\nseries: Clarity 功能地图\n---\n","yaml","",[30,56,52],{"__ignoreMap":54},[14,58,59,60,62],{},"具有相同 ",[30,61,32],{"code":32}," 值的文章会自动归入同一合集，并按日期倒序排列。",[10,64,65],{"id":65},"合集页面",[14,67,68,69,74],{},"访问左侧栏的「合集」或 ",[70,71,72],"a",{"href":36},[30,73,36],{"code":36}," 即可看到所有合集：",[76,77,78,82,85],"ul",{},[79,80,81],"li",{},"每个合集显示名称、文章数量与文章列表（复用首页的卡片组件）",[79,83,84],{},"合集之间按名称排序",[79,86,87,88,90],{},"没有填写 ",[30,89,32],{"code":32}," 的文章不会出现在这里",[14,92,93],{},"本站当前有两个合集：",[76,95,96,102],{},[79,97,98,101],{},[17,99,100],{},"Clarity 功能地图","：介绍主题各项能力的一组演示文章",[79,103,104,107],{},[17,105,106],{},"站点搭建手册","：站点配置与上线相关的一组文章",[10,109,111],{"id":110},"与分类标签的分工","与分类、标签的分工",[113,114,115],"card-list",{},[76,116,117,123,129],{},[79,118,119,122],{},[17,120,121],{},"分类","：回答「是什么类型」，通常选一个父级",[79,124,125,128],{},[17,126,127],{},"标签","：回答「涉及哪些关键词」，可以有多个",[79,130,131,133,134],{},[17,132,19],{},"：回答「属于哪个系列」，强调一组文章的",[17,135,136],{},"整体性与阅读顺序",[10,138,139],{"id":139},"实现要点",[14,141,142],{},"如果你要在自己的分支上复刻这一能力，核心是三处改动：",[144,145,146,155,163],"ol",{},[79,147,148,151,152],{},[30,149,150],{"code":150},"content.config.ts"," 的内容 schema 增加 ",[30,153,154],{"code":154},"series: z.string().optional()",[79,156,157,160,161],{},[30,158,159],{"code":159},"app\u002Futils\u002Farticle.ts"," 的查询字段列表加入 ",[30,162,32],{"code":32},[79,164,165,166,169,170,172],{},"新增 ",[30,167,168],{"code":168},"app\u002Fpages\u002Fcollections.vue","，按 ",[30,171,32],{"code":32}," 分组渲染",{"title":54,"searchDepth":174,"depth":174,"links":175},4,[176,178,179,180,181],{"id":12,"depth":177,"text":12},2,{"id":40,"depth":177,"text":40},{"id":65,"depth":177,"text":65},{"id":110,"depth":177,"text":111},{"id":139,"depth":177,"text":139},[183],"功能演示","2026-10-03 10:00:00","合集把同一系列的文章组织在一起。本站通过 series 字段与 \u002Fcollections 页面实现，本文介绍用法。",false,"md","\u002Fcovers\u002Fcollections.jpg",{"slots":190},{},true,"\u002F2026\u002Fcollections",null,{"text":195,"minutes":196,"time":197,"words":198},"3 min read",2.115,126900,423,{"title":5,"description":185},{"loc":192},"posts\u002F2026\u002Fcollections",[19,203,204],"系列","扩展","tech","_SbVdGM5eqQrdaeFnnrfWPrXEZyeyYCCZghn5UYMqiU",[208,213],{"title":209,"path":210,"stem":211,"date":212,"type":205,"children":-1},"归档页","\u002F2026\u002Farchive","posts\u002F2026\u002Farchive","2026-10-03 09:50:00",{"title":214,"path":215,"stem":216,"date":217,"type":205,"children":-1},"代码块与高亮","\u002F2026\u002Fcode-blocks","posts\u002F2026\u002Fcode-blocks","2026-10-03 10:10:00",1791033609858]