vuepress-theme-plume/assets/collection-B5UxsmNp.js

42 lines
41 KiB
JavaScript

import{$ as e,B as t,P as n,_ as r,f as i,g as a,h as o,l as s}from"./runtime-core.esm-bundler-CZvn3YaB.js";import{t as c}from"./plugin-vue_export-helper-CxTVcLa7.js";var l=JSON.parse(`{"path":"/en/guide/collection/","title":"Collection | Guide","lang":"en-US","frontmatter":{"title":"Collection","icon":"fluent:list-bar-tree-16-regular","createTime":"2025/10/08 14:14:53","permalink":"/en/guide/collection/","description":"Overview Collections are a core concept in the theme for organizing and managing documents. Each collection points to a specific folder in the source directory, treating all Mar...","head":[["script",{"type":"application/ld+json"},"{\\"@context\\":\\"https://schema.org\\",\\"@type\\":\\"Article\\",\\"headline\\":\\"Collection\\",\\"image\\":[\\"\\"],\\"dateModified\\":\\"2026-04-02T12:48:55.000Z\\",\\"author\\":[]}"],["meta",{"property":"og:url","content":"https://theme-plume.vuejs.press/en/guide/collection/"}],["meta",{"property":"og:site_name","content":"Plume Theme"}],["meta",{"property":"og:title","content":"Collection"}],["meta",{"property":"og:description","content":"Overview Collections are a core concept in the theme for organizing and managing documents. Each collection points to a specific folder in the source directory, treating all Mar..."}],["meta",{"property":"og:type","content":"article"}],["meta",{"property":"og:locale","content":"en-US"}],["meta",{"property":"og:locale:alternate","content":"zh-CN"}],["meta",{"property":"og:updated_time","content":"2026-04-02T12:48:55.000Z"}],["meta",{"property":"article:modified_time","content":"2026-04-02T12:48:55.000Z"}],["link",{"rel":"alternate","hreflang":"zh-cn","href":"https://theme-plume.vuejs.press/guide/collection/"}]]},"readingTime":{"minutes":1.76,"words":529},"git":{"createdTime":1759995965000,"updatedTime":1775134135000,"contributors":[{"name":"pengzhanbo","username":"pengzhanbo","email":"volodymyr@foxmail.com","commits":2,"avatar":"https://avatars.githubusercontent.com/pengzhanbo?v=4","url":"https://github.com/pengzhanbo"}],"changelog":[{"hash":"39a76a35d7bf1f48c818315343a42040aeefe36b","time":1775134135000,"email":"volodymyr@foxmail.com","author":"pengzhanbo","message":"feat(plugin-md-power)!: use <code>#</code> as the comment delimiter (#870)"},{"hash":"385059f214cb07fc9a098859e889432fb81f998b","time":1759995965000,"email":"volodymyr@foxmail.com","author":"pengzhanbo","message":"docs: update en docs (#708)"}]},"autoDesc":true,"filePathRelative":"en/guide/quick-start/collection.md","headers":[],"bulletin":false}`),u={name:`collection.md`},d={class:`vp-file-tree`},f={class:`vp-steps`},p={class:`vp-file-tree`},m={class:`language-ts`,"data-highlighter":`shiki`,"data-ext":`ts`,style:{"--shiki-light":`#393a34`,"--shiki-dark":`#dbd7caee`,"--shiki-light-bg":`#ffffff`,"--shiki-dark-bg":`#121212`}},h={class:`shiki shiki-themes vitesse-light vitesse-dark vp-code twoslash lsp`},g={class:`language-ts`},_={class:`line`},v={style:{"--shiki-light":`#B07D48`,"--shiki-dark":`#BD976A`}},y={class:`line`},b={style:{"--shiki-light":`#B07D48`,"--shiki-dark":`#BD976A`}},x={class:`line`},S={style:{"--shiki-light":`#59873A`,"--shiki-dark":`#80A665`}},C={class:`line`},w={style:{"--shiki-light":`#998418`,"--shiki-dark":`#B8A965`}},T={style:{"--shiki-light":`#59873A`,"--shiki-dark":`#80A665`}},E={class:`line`},D={style:{"--shiki-light":`#998418`,"--shiki-dark":`#B8A965`}},O={class:`line`},k={style:{"--shiki-light":`#998418`,"--shiki-dark":`#B8A965`},class:`highlighted-word`},A={style:{"--shiki-light":`#998418`,"--shiki-dark":`#B8A965`},class:`highlighted-word`},j={style:{"--shiki-light":`#998418`,"--shiki-dark":`#B8A965`}},M={class:`language-ts`,"data-highlighter":`shiki`,"data-ext":`ts`,style:{"--shiki-light":`#393a34`,"--shiki-dark":`#dbd7caee`,"--shiki-light-bg":`#ffffff`,"--shiki-dark-bg":`#121212`}},N={class:`shiki shiki-themes vitesse-light vitesse-dark vp-code twoslash lsp`},P={class:`language-ts`},F={class:`line`},I={style:{"--shiki-light":`#B07D48`,"--shiki-dark":`#BD976A`}},L={class:`line`},R={style:{"--shiki-light":`#59873A`,"--shiki-dark":`#80A665`}},z={class:`line`},B={style:{"--shiki-light":`#998418`,"--shiki-dark":`#B8A965`}},V={class:`line`},H={style:{"--shiki-light":`#998418`,"--shiki-dark":`#B8A965`},class:`highlighted-word`},U={style:{"--shiki-light":`#998418`,"--shiki-dark":`#B8A965`},class:`highlighted-word`},W={style:{"--shiki-light":`#998418`,"--shiki-dark":`#B8A965`}};function G(c,l,u,G,K,q){let J=t(`VPCopyButton`),Y=t(`VPIcon`),X=t(`FileTreeNode`),Z=t(`v-menu`),Q=t(`CodeTabs`),$=t(`LinkCard`);return n(),i(`div`,null,[l[132]||=o(`<h2 id="overview" tabindex="-1"><a class="header-anchor" href="#overview"><span>Overview</span></a></h2><p><mark>Collections</mark> are a core concept in the theme for organizing and managing documents. Each collection points to a specific folder in the source directory, treating all Markdown files within it as a logical unit for management.</p><p>Through flexible collection configuration, you can easily build various content architectures:</p><ul><li><strong>Blog</strong> - Personal essays and technical sharing</li><li><strong>Column</strong> - Thematic series articles</li><li><strong>User Manual</strong> - Product usage documentation</li><li><strong>Notes</strong> - Study notes and knowledge organization</li><li><strong>Product Documentation</strong> - Complete project documentation</li><li><strong>Knowledge Base</strong> - Team knowledge management system</li><li>And more...</li></ul><h2 id="creating-a-collection" tabindex="-1"><a class="header-anchor" href="#creating-a-collection"><span>Creating a Collection</span></a></h2><p>A typical VuePress static site has the following file structure:</p>`,6),s(`div`,d,[r(J,{text:`eJzT43o0ZcqjKQ1ApJBbqVucWZLKpQAEj6bMgYqm5CcXQ4WaUCT0ykpTC4pSi1FlYYYFuTq6+Lrq5aZAZWHiBYnJ2YnpqXpZxfl5AEu+NQw=`,encode:``,"aria-label":`Copy`,"data-copied":`Copied`}),r(X,{expanded:``,type:`folder`,filename:`my-site`,level:0},{icon:e(()=>[r(Y,{provider:`iconify`,name:`vscode-icons:default-folder`})]),default:e(()=>[r(X,{expanded:``,type:`folder`,filename:`docs`,level:1},{icon:e(()=>[r(Y,{provider:`iconify`,name:`vscode-icons:folder-type-docs`})]),comment:e(()=>[...l[0]||=[a(`# Source directory`,-1)]]),default:e(()=>[r(X,{type:`folder`,filename:`.vuepress`,level:2},{icon:e(()=>[r(Y,{provider:`iconify`,name:`vscode-icons:default-folder`})]),default:e(()=>[r(X,{type:`file`,filename:``,level:3})]),_:1}),r(X,{type:`file`,filename:``,level:2}),r(X,{type:`file`,filename:`README.md`,level:2},{icon:e(()=>[r(Y,{provider:`iconify`,name:`flat-color-icons:info`})]),comment:e(()=>[...l[1]||=[a(`# Homepage`,-1)]]),_:1})]),_:1}),r(X,{type:`file`,filename:`package.json`,level:1},{icon:e(()=>[r(Y,{provider:`iconify`,name:`vscode-icons:file-type-node`})]),_:1})]),_:1})]),l[133]||=s(`p`,null,[a(`When you want to add a collection for a `),s(`strong`,null,`blog`),a(`:`)],-1),s(`div`,f,[s(`ul`,null,[s(`li`,null,[l[2]||=s(`p`,null,[s(`strong`,null,`Create a blog directory`)],-1),s(`div`,p,[r(J,{text:`eJzT43o0ZcqjKQ1ApJCSn1zMpQAECKGknPx0sBBEeA5UuCC/uETXUC83BUkOpgUsZwSUAwDf5STL`,encode:``,"aria-label":`Copy`,"data-copied":`Copied`}),r(X,{expanded:``,type:`folder`,filename:`docs`,level:0},{icon:e(()=>[r(Y,{provider:`iconify`,name:`vscode-icons:folder-type-docs`})]),default:e(()=>[r(X,{expanded:``,type:`folder`,filename:`blog`,level:1},{icon:e(()=>[r(Y,{provider:`iconify`,name:`vscode-icons:default-folder`})]),default:e(()=>[r(X,{type:`file`,filename:`post-1.md`,level:2},{icon:e(()=>[r(Y,{provider:`iconify`,name:`vscode-icons:file-type-markdown`})]),_:1}),r(X,{type:`file`,filename:`post-2.md`,level:2},{icon:e(()=>[r(Y,{provider:`iconify`,name:`vscode-icons:file-type-markdown`})]),_:1}),r(X,{type:`file`,filename:``,level:2})]),_:1}),r(X,{type:`file`,filename:``,level:1})]),_:1})])]),s(`li`,null,[l[128]||=s(`p`,null,[s(`strong`,null,[a(`Add a collection of type `),s(`code`,null,`post`),a(` in the theme configuration`)])],-1),l[129]||=s(`p`,null,[a(`Set the `),s(`code`,null,`dir`),a(` configuration option to point to the `),s(`code`,null,`blog`),a(` directory`)],-1),r(Q,{id:`71`,data:[{id:`.vuepress/config.ts`},{id:`.vuepress/plume.config.ts`}],"tab-id":`config`},{title0:e(({value:e,isActive:t})=>[r(Y,{provider:`iconify`,name:`vscode-icons:file-type-typescript`}),l[3]||=s(`span`,null,`.vuepress/config.ts`,-1)]),title1:e(({value:e,isActive:t})=>[r(Y,{provider:`iconify`,name:`vscode-icons:file-type-typescript`}),l[4]||=s(`span`,null,`.vuepress/plume.config.ts`,-1)]),tab0:e(({value:t,isActive:n})=>[s(`div`,m,[s(`pre`,h,[s(`code`,g,[s(`span`,_,[l[7]||=s(`span`,{style:{"--shiki-light":`#1E754F`,"--shiki-dark":`#4D9375`}},`import`,-1),l[8]||=s(`span`,{style:{"--shiki-light":`#999999`,"--shiki-dark":`#666666`}},` {`,-1),l[9]||=s(`span`,{style:{"--shiki-light":`#B07D48`,"--shiki-dark":`#BD976A`}},` `,-1),s(`span`,v,[r(Z,{class:`twoslash-hover`,"popper-class":`shiki twoslash-floating vp-copy-ignore vp-code`,theme:`twoslash`},{popper:e(({})=>[...l[5]||=[s(`span`,{class:`twoslash-popup-container vp-copy-ignore`},[s(`code`,{class:`twoslash-popup-code`},[s(`span`,{style:{"--shiki-light":`#AB5959`,"--shiki-dark":`#CB7676`}},`const `),s(`span`,{style:{"--shiki-light":`#59873A`,"--shiki-dark":`#80A665`}},`defineUserConfig`),s(`span`,{style:{"--shiki-light":`#999999`,"--shiki-dark":`#666666`}},`: (`),s(`span`,{style:{"--shiki-light":`#B07D48`,"--shiki-dark":`#BD976A`}},`config`),s(`span`,{style:{"--shiki-light":`#999999`,"--shiki-dark":`#666666`}},`: `),s(`span`,{style:{"--shiki-light":`#2E8F82`,"--shiki-dark":`#5DA994`}},`UserConfig`),s(`span`,{style:{"--shiki-light":`#999999`,"--shiki-dark":`#666666`}},`) => `),s(`span`,{style:{"--shiki-light":`#2E8F82`,"--shiki-dark":`#5DA994`}},`UserConfig`)])],-1)]]),default:e(()=>[l[6]||=s(`span`,null,`defineUserConfig`,-1)]),_:1})]),l[10]||=s(`span`,{style:{"--shiki-light":`#999999`,"--shiki-dark":`#666666`}},` }`,-1),l[11]||=s(`span`,{style:{"--shiki-light":`#1E754F`,"--shiki-dark":`#4D9375`}},` from`,-1),l[12]||=s(`span`,{style:{"--shiki-light":`#B5695977`,"--shiki-dark":`#C98A7D77`}},` '`,-1),l[13]||=s(`span`,{style:{"--shiki-light":`#B56959`,"--shiki-dark":`#C98A7D`}},`vuepress`,-1),l[14]||=s(`span`,{style:{"--shiki-light":`#B5695977`,"--shiki-dark":`#C98A7D77`}},`'`,-1)]),l[64]||=a(`
`,-1),s(`span`,y,[l[17]||=s(`span`,{style:{"--shiki-light":`#1E754F`,"--shiki-dark":`#4D9375`}},`import`,-1),l[18]||=s(`span`,{style:{"--shiki-light":`#999999`,"--shiki-dark":`#666666`}},` {`,-1),l[19]||=s(`span`,{style:{"--shiki-light":`#B07D48`,"--shiki-dark":`#BD976A`}},` `,-1),s(`span`,b,[r(Z,{class:`twoslash-hover`,"popper-class":`shiki twoslash-floating vp-copy-ignore vp-code`,theme:`twoslash`},{popper:e(({})=>[...l[15]||=[s(`span`,{class:`twoslash-popup-container vp-copy-ignore`},[s(`code`,{class:`twoslash-popup-code`},[s(`span`,{style:{"--shiki-light":`#AB5959`,"--shiki-dark":`#CB7676`}},`function`),s(`span`,{style:{"--shiki-light":`#59873A`,"--shiki-dark":`#80A665`}},` plumeTheme`),s(`span`,{style:{"--shiki-light":`#999999`,"--shiki-dark":`#666666`}},`(`),s(`span`,{style:{"--shiki-light":`#B07D48`,"--shiki-dark":`#BD976A`}},`options`),s(`span`,{style:{"--shiki-light":`#AB5959`,"--shiki-dark":`#CB7676`}},`?`),s(`span`,{style:{"--shiki-light":`#999999`,"--shiki-dark":`#666666`}},`: `),s(`span`,{style:{"--shiki-light":`#2E8F82`,"--shiki-dark":`#5DA994`}},`ThemeOptions`),s(`span`,{style:{"--shiki-light":`#999999`,"--shiki-dark":`#666666`}},`):`),s(`span`,{style:{"--shiki-light":`#2E8F82`,"--shiki-dark":`#5DA994`}},` Theme`)]),s(`div`,{class:`twoslash-popup-docs vp-doc`,"vp-content":``},[s(`p`,null,`VuePress Theme Plume`),a(`
`),s(`p`,null,`VuePress 主题 Plume`)]),s(`div`,{class:`twoslash-popup-docs twoslash-popup-docs-tags vp-doc`,"vp-content":``},[s(`span`,{class:`twoslash-popup-docs-tag`},[s(`span`,{class:`twoslash-popup-docs-tag-name`},`@param`),s(`span`,{class:`twoslash-popup-docs-tag-value`},[s(`code`,null,`options`),a(` Theme options / 主题配置`)])]),s(`span`,{class:`twoslash-popup-docs-tag`},[s(`span`,{class:`twoslash-popup-docs-tag-name`},`@example`),s(`span`,{class:`twoslash-popup-docs-tag-value`},[s(`div`,{class:`language-ts`,"data-ext":`ts`,"data-title":`ts`,"data-highlighter":`shiki`,style:{"--shiki-light":`#393a34`,"--shiki-dark":`#dbd7caee`,"--shiki-light-bg":`#ffffff`,"--shiki-dark-bg":`#121212`}},[s(`pre`,{class:`shiki shiki-themes vitesse-light vitesse-dark`,style:{"--shiki-light":`#393a34`,"--shiki-dark":`#dbd7caee`,"--shiki-light-bg":`#ffffff`,"--shiki-dark-bg":`#121212`},tabindex:`0`},[s(`code`,null,[s(`span`,{class:`line`},[s(`span`,{style:{"--shiki-light":`#1E754F`,"--shiki-dark":`#4D9375`}},`import`),s(`span`,{style:{"--shiki-light":`#999999`,"--shiki-dark":`#666666`}},` {`),s(`span`,{style:{"--shiki-light":`#B07D48`,"--shiki-dark":`#BD976A`}},` defineUserConfig`),s(`span`,{style:{"--shiki-light":`#999999`,"--shiki-dark":`#666666`}},` }`),s(`span`,{style:{"--shiki-light":`#1E754F`,"--shiki-dark":`#4D9375`}},` from`),s(`span`,{style:{"--shiki-light":`#B5695977`,"--shiki-dark":`#C98A7D77`}},` '`),s(`span`,{style:{"--shiki-light":`#B56959`,"--shiki-dark":`#C98A7D`}},`vuepress`),s(`span`,{style:{"--shiki-light":`#B5695977`,"--shiki-dark":`#C98A7D77`}},`'`)]),a(`
`),s(`span`,{class:`line`},[s(`span`,{style:{"--shiki-light":`#1E754F`,"--shiki-dark":`#4D9375`}},`import`),s(`span`,{style:{"--shiki-light":`#999999`,"--shiki-dark":`#666666`}},` {`),s(`span`,{style:{"--shiki-light":`#B07D48`,"--shiki-dark":`#BD976A`}},` plumeTheme`),s(`span`,{style:{"--shiki-light":`#999999`,"--shiki-dark":`#666666`}},` }`),s(`span`,{style:{"--shiki-light":`#1E754F`,"--shiki-dark":`#4D9375`}},` from`),s(`span`,{style:{"--shiki-light":`#B5695977`,"--shiki-dark":`#C98A7D77`}},` '`),s(`span`,{style:{"--shiki-light":`#B56959`,"--shiki-dark":`#C98A7D`}},`vuepress-theme-plume`),s(`span`,{style:{"--shiki-light":`#B5695977`,"--shiki-dark":`#C98A7D77`}},`'`)]),a(`
`),s(`span`,{class:`line`}),a(`
`),s(`span`,{class:`line`},[s(`span`,{style:{"--shiki-light":`#1E754F`,"--shiki-dark":`#4D9375`}},`export`),s(`span`,{style:{"--shiki-light":`#1E754F`,"--shiki-dark":`#4D9375`}},` default`),s(`span`,{style:{"--shiki-light":`#59873A`,"--shiki-dark":`#80A665`}},` defineUserConfig`),s(`span`,{style:{"--shiki-light":`#999999`,"--shiki-dark":`#666666`}},`({`)]),a(`
`),s(`span`,{class:`line`},[s(`span`,{style:{"--shiki-light":`#998418`,"--shiki-dark":`#B8A965`}},` theme`),s(`span`,{style:{"--shiki-light":`#999999`,"--shiki-dark":`#666666`}},`: `),s(`span`,{style:{"--shiki-light":`#59873A`,"--shiki-dark":`#80A665`}},`plumeTheme`),s(`span`,{style:{"--shiki-light":`#999999`,"--shiki-dark":`#666666`}},`({`)]),a(`
`),s(`span`,{class:`line`},[s(`span`,{style:{"--shiki-light":`#A0ADA0`,"--shiki-dark":`#758575DD`}},` // ...options`)]),a(`
`),s(`span`,{class:`line`},[s(`span`,{style:{"--shiki-light":`#999999`,"--shiki-dark":`#666666`}},` })`)]),a(`
`),s(`span`,{class:`line`},[s(`span`,{style:{"--shiki-light":`#999999`,"--shiki-dark":`#666666`}},`})`)])])])])])])])],-1)]]),default:e(()=>[l[16]||=s(`span`,null,`plumeTheme`,-1)]),_:1})]),l[20]||=s(`span`,{style:{"--shiki-light":`#999999`,"--shiki-dark":`#666666`}},` }`,-1),l[21]||=s(`span`,{style:{"--shiki-light":`#1E754F`,"--shiki-dark":`#4D9375`}},` from`,-1),l[22]||=s(`span`,{style:{"--shiki-light":`#B5695977`,"--shiki-dark":`#C98A7D77`}},` '`,-1),l[23]||=s(`span`,{style:{"--shiki-light":`#B56959`,"--shiki-dark":`#C98A7D`}},`vuepress-theme-plume`,-1),l[24]||=s(`span`,{style:{"--shiki-light":`#B5695977`,"--shiki-dark":`#C98A7D77`}},`'`,-1)]),l[65]||=a(`
`,-1),l[66]||=s(`span`,{class:`line`},null,-1),l[67]||=a(`
`,-1),s(`span`,x,[l[27]||=s(`span`,{style:{"--shiki-light":`#1E754F`,"--shiki-dark":`#4D9375`}},`export`,-1),l[28]||=s(`span`,{style:{"--shiki-light":`#1E754F`,"--shiki-dark":`#4D9375`}},` default`,-1),l[29]||=s(`span`,{style:{"--shiki-light":`#59873A`,"--shiki-dark":`#80A665`}},` `,-1),s(`span`,S,[r(Z,{class:`twoslash-hover`,"popper-class":`shiki twoslash-floating vp-copy-ignore vp-code`,theme:`twoslash`},{popper:e(({})=>[...l[25]||=[s(`span`,{class:`twoslash-popup-container vp-copy-ignore`},[s(`code`,{class:`twoslash-popup-code`},[s(`span`,{style:{"--shiki-light":`#AB5959`,"--shiki-dark":`#CB7676`}},`function`),s(`span`,{style:{"--shiki-light":`#59873A`,"--shiki-dark":`#80A665`}},` defineUserConfig`),s(`span`,{style:{"--shiki-light":`#999999`,"--shiki-dark":`#666666`}},`(`),s(`span`,{style:{"--shiki-light":`#B07D48`,"--shiki-dark":`#BD976A`}},`config`),s(`span`,{style:{"--shiki-light":`#999999`,"--shiki-dark":`#666666`}},`: `),s(`span`,{style:{"--shiki-light":`#2E8F82`,"--shiki-dark":`#5DA994`}},`UserConfig`),s(`span`,{style:{"--shiki-light":`#999999`,"--shiki-dark":`#666666`}},`):`),s(`span`,{style:{"--shiki-light":`#2E8F82`,"--shiki-dark":`#5DA994`}},` UserConfig`)])],-1)]]),default:e(()=>[l[26]||=s(`span`,null,`defineUserConfig`,-1)]),_:1})]),l[30]||=s(`span`,{style:{"--shiki-light":`#999999`,"--shiki-dark":`#666666`}},`({`,-1)]),l[68]||=a(`
`,-1),s(`span`,C,[l[35]||=s(`span`,{style:{"--shiki-light":`#998418`,"--shiki-dark":`#B8A965`}},` `,-1),s(`span`,w,[r(Z,{class:`twoslash-hover`,"popper-class":`shiki twoslash-floating vp-copy-ignore vp-code`,theme:`twoslash`},{popper:e(({})=>[...l[31]||=[s(`span`,{class:`twoslash-popup-container vp-copy-ignore`},[s(`code`,{class:`twoslash-popup-code`},[s(`span`,{style:{"--shiki-light":`#B07D48`,"--shiki-dark":`#BD976A`}},`theme`),s(`span`,{style:{"--shiki-light":`#AB5959`,"--shiki-dark":`#CB7676`}},`?:`),s(`span`,{style:{"--shiki-light":`#B07D48`,"--shiki-dark":`#BD976A`}},` Theme`),s(`span`,{style:{"--shiki-light":`#AB5959`,"--shiki-dark":`#CB7676`}},` |`),s(`span`,{style:{"--shiki-light":`#AB5959`,"--shiki-dark":`#CB7676`}},` undefined`)]),s(`div`,{class:`twoslash-popup-docs vp-doc`,"vp-content":``},[s(`p`,null,`Vuepress theme`)]),s(`div`,{class:`twoslash-popup-docs twoslash-popup-docs-tags vp-doc`,"vp-content":``},[s(`span`,{class:`twoslash-popup-docs-tag`},[s(`span`,{class:`twoslash-popup-docs-tag-name`},`@required`)])])],-1)]]),default:e(()=>[l[32]||=s(`span`,null,`theme`,-1)]),_:1})]),l[36]||=s(`span`,{style:{"--shiki-light":`#999999`,"--shiki-dark":`#666666`}},`: `,-1),s(`span`,T,[r(Z,{class:`twoslash-hover`,"popper-class":`shiki twoslash-floating vp-copy-ignore vp-code`,theme:`twoslash`},{popper:e(({})=>[...l[33]||=[s(`span`,{class:`twoslash-popup-container vp-copy-ignore`},[s(`code`,{class:`twoslash-popup-code`},[s(`span`,{style:{"--shiki-light":`#AB5959`,"--shiki-dark":`#CB7676`}},`function`),s(`span`,{style:{"--shiki-light":`#59873A`,"--shiki-dark":`#80A665`}},` plumeTheme`),s(`span`,{style:{"--shiki-light":`#999999`,"--shiki-dark":`#666666`}},`(`),s(`span`,{style:{"--shiki-light":`#B07D48`,"--shiki-dark":`#BD976A`}},`options`),s(`span`,{style:{"--shiki-light":`#AB5959`,"--shiki-dark":`#CB7676`}},`?`),s(`span`,{style:{"--shiki-light":`#999999`,"--shiki-dark":`#666666`}},`: `),s(`span`,{style:{"--shiki-light":`#2E8F82`,"--shiki-dark":`#5DA994`}},`ThemeOptions`),s(`span`,{style:{"--shiki-light":`#999999`,"--shiki-dark":`#666666`}},`):`),s(`span`,{style:{"--shiki-light":`#2E8F82`,"--shiki-dark":`#5DA994`}},` Theme`)]),s(`div`,{class:`twoslash-popup-docs vp-doc`,"vp-content":``},[s(`p`,null,`VuePress Theme Plume`),a(`
`),s(`p`,null,`VuePress 主题 Plume`)]),s(`div`,{class:`twoslash-popup-docs twoslash-popup-docs-tags vp-doc`,"vp-content":``},[s(`span`,{class:`twoslash-popup-docs-tag`},[s(`span`,{class:`twoslash-popup-docs-tag-name`},`@param`),s(`span`,{class:`twoslash-popup-docs-tag-value`},[s(`code`,null,`options`),a(` Theme options / 主题配置`)])]),s(`span`,{class:`twoslash-popup-docs-tag`},[s(`span`,{class:`twoslash-popup-docs-tag-name`},`@example`),s(`span`,{class:`twoslash-popup-docs-tag-value`},[s(`div`,{class:`language-ts`,"data-ext":`ts`,"data-title":`ts`,"data-highlighter":`shiki`,style:{"--shiki-light":`#393a34`,"--shiki-dark":`#dbd7caee`,"--shiki-light-bg":`#ffffff`,"--shiki-dark-bg":`#121212`}},[s(`pre`,{class:`shiki shiki-themes vitesse-light vitesse-dark`,style:{"--shiki-light":`#393a34`,"--shiki-dark":`#dbd7caee`,"--shiki-light-bg":`#ffffff`,"--shiki-dark-bg":`#121212`},tabindex:`0`},[s(`code`,null,[s(`span`,{class:`line`},[s(`span`,{style:{"--shiki-light":`#1E754F`,"--shiki-dark":`#4D9375`}},`import`),s(`span`,{style:{"--shiki-light":`#999999`,"--shiki-dark":`#666666`}},` {`),s(`span`,{style:{"--shiki-light":`#B07D48`,"--shiki-dark":`#BD976A`}},` defineUserConfig`),s(`span`,{style:{"--shiki-light":`#999999`,"--shiki-dark":`#666666`}},` }`),s(`span`,{style:{"--shiki-light":`#1E754F`,"--shiki-dark":`#4D9375`}},` from`),s(`span`,{style:{"--shiki-light":`#B5695977`,"--shiki-dark":`#C98A7D77`}},` '`),s(`span`,{style:{"--shiki-light":`#B56959`,"--shiki-dark":`#C98A7D`}},`vuepress`),s(`span`,{style:{"--shiki-light":`#B5695977`,"--shiki-dark":`#C98A7D77`}},`'`)]),a(`
`),s(`span`,{class:`line`},[s(`span`,{style:{"--shiki-light":`#1E754F`,"--shiki-dark":`#4D9375`}},`import`),s(`span`,{style:{"--shiki-light":`#999999`,"--shiki-dark":`#666666`}},` {`),s(`span`,{style:{"--shiki-light":`#B07D48`,"--shiki-dark":`#BD976A`}},` plumeTheme`),s(`span`,{style:{"--shiki-light":`#999999`,"--shiki-dark":`#666666`}},` }`),s(`span`,{style:{"--shiki-light":`#1E754F`,"--shiki-dark":`#4D9375`}},` from`),s(`span`,{style:{"--shiki-light":`#B5695977`,"--shiki-dark":`#C98A7D77`}},` '`),s(`span`,{style:{"--shiki-light":`#B56959`,"--shiki-dark":`#C98A7D`}},`vuepress-theme-plume`),s(`span`,{style:{"--shiki-light":`#B5695977`,"--shiki-dark":`#C98A7D77`}},`'`)]),a(`
`),s(`span`,{class:`line`}),a(`
`),s(`span`,{class:`line`},[s(`span`,{style:{"--shiki-light":`#1E754F`,"--shiki-dark":`#4D9375`}},`export`),s(`span`,{style:{"--shiki-light":`#1E754F`,"--shiki-dark":`#4D9375`}},` default`),s(`span`,{style:{"--shiki-light":`#59873A`,"--shiki-dark":`#80A665`}},` defineUserConfig`),s(`span`,{style:{"--shiki-light":`#999999`,"--shiki-dark":`#666666`}},`({`)]),a(`
`),s(`span`,{class:`line`},[s(`span`,{style:{"--shiki-light":`#998418`,"--shiki-dark":`#B8A965`}},` theme`),s(`span`,{style:{"--shiki-light":`#999999`,"--shiki-dark":`#666666`}},`: `),s(`span`,{style:{"--shiki-light":`#59873A`,"--shiki-dark":`#80A665`}},`plumeTheme`),s(`span`,{style:{"--shiki-light":`#999999`,"--shiki-dark":`#666666`}},`({`)]),a(`
`),s(`span`,{class:`line`},[s(`span`,{style:{"--shiki-light":`#A0ADA0`,"--shiki-dark":`#758575DD`}},` // ...options`)]),a(`
`),s(`span`,{class:`line`},[s(`span`,{style:{"--shiki-light":`#999999`,"--shiki-dark":`#666666`}},` })`)]),a(`
`),s(`span`,{class:`line`},[s(`span`,{style:{"--shiki-light":`#999999`,"--shiki-dark":`#666666`}},`})`)])])])])])])])],-1)]]),default:e(()=>[l[34]||=s(`span`,null,`plumeTheme`,-1)]),_:1})]),l[37]||=s(`span`,{style:{"--shiki-light":`#999999`,"--shiki-dark":`#666666`}},`({`,-1)]),l[69]||=a(`
`,-1),s(`span`,E,[l[40]||=s(`span`,{style:{"--shiki-light":`#998418`,"--shiki-dark":`#B8A965`}},` `,-1),s(`span`,D,[r(Z,{class:`twoslash-hover`,"popper-class":`shiki twoslash-floating vp-copy-ignore vp-code`,theme:`twoslash`},{popper:e(({})=>[...l[38]||=[s(`span`,{class:`twoslash-popup-container vp-copy-ignore`},[s(`code`,{class:`twoslash-popup-code`},[s(`span`,{style:{"--shiki-light":`#B07D48`,"--shiki-dark":`#BD976A`}},`ThemeLocale`),s(`span`,{style:{"--shiki-light":`#999999`,"--shiki-dark":`#666666`}},`.`),s(`span`,{style:{"--shiki-light":`#B07D48`,"--shiki-dark":`#BD976A`}},`collections`),s(`span`,{style:{"--shiki-light":`#AB5959`,"--shiki-dark":`#CB7676`}},`?:`),s(`span`,{style:{"--shiki-light":`#B07D48`,"--shiki-dark":`#BD976A`}},` ThemeCollections`),s(`span`,{style:{"--shiki-light":`#AB5959`,"--shiki-dark":`#CB7676`}},` |`),s(`span`,{style:{"--shiki-light":`#AB5959`,"--shiki-dark":`#CB7676`}},` undefined`)]),s(`div`,{class:`twoslash-popup-docs vp-doc`,"vp-content":``},[s(`p`,null,`文章集合,当前支持 博客类型 或 文档类型`)])],-1)]]),default:e(()=>[l[39]||=s(`span`,null,`collections`,-1)]),_:1})]),l[41]||=s(`span`,{style:{"--shiki-light":`#999999`,"--shiki-dark":`#666666`}},`: [`,-1)]),l[70]||=a(`
`,-1),s(`span`,O,[l[48]||=s(`span`,{style:{"--shiki-light":`#999999`,"--shiki-dark":`#666666`}},` { `,-1),s(`span`,k,[r(Z,{class:`twoslash-hover`,"popper-class":`shiki twoslash-floating vp-copy-ignore vp-code`,theme:`twoslash`},{popper:e(({})=>[...l[42]||=[s(`span`,{class:`twoslash-popup-container vp-copy-ignore`},[s(`code`,{class:`twoslash-popup-code`},[s(`span`,{style:{"--shiki-light":`#B07D48`,"--shiki-dark":`#BD976A`}},`ThemePostCollection`),s(`span`,{style:{"--shiki-light":`#999999`,"--shiki-dark":`#666666`}},`.`),s(`span`,{style:{"--shiki-light":`#B07D48`,"--shiki-dark":`#BD976A`}},`type`),s(`span`,{style:{"--shiki-light":`#393A34`,"--shiki-dark":`#DBD7CAEE`}},`: `),s(`span`,{style:{"--shiki-light":`#B5695977`,"--shiki-dark":`#C98A7D77`}},`"`),s(`span`,{style:{"--shiki-light":`#B56959`,"--shiki-dark":`#C98A7D`}},`post`),s(`span`,{style:{"--shiki-light":`#B5695977`,"--shiki-dark":`#C98A7D77`}},`"`)]),s(`div`,{class:`twoslash-popup-docs vp-doc`,"vp-content":``},[s(`p`,null,`文档集合类型`),a(`
`),s(`ul`,null,[a(`
`),s(`li`,null,[s(`code`,null,`post`),a(`: 文章列表(可用于 博客、专栏等)`)]),a(`
`),s(`li`,null,[s(`code`,null,`doc`),a(`: 文档(可用于 笔记、知识库等)`)]),a(`
`)])])],-1)]]),default:e(()=>[l[43]||=s(`span`,null,`type`,-1)]),_:1})]),l[49]||=s(`span`,{style:{"--shiki-light":`#999999`,"--shiki-dark":`#666666`}},`: `,-1),l[50]||=s(`span`,{style:{"--shiki-light":`#B5695977`,"--shiki-dark":`#C98A7D77`}},`'`,-1),l[51]||=s(`span`,{style:{"--shiki-light":`#B56959`,"--shiki-dark":`#C98A7D`}},`post`,-1),l[52]||=s(`span`,{style:{"--shiki-light":`#B5695977`,"--shiki-dark":`#C98A7D77`}},`'`,-1),l[53]||=s(`span`,{style:{"--shiki-light":`#999999`,"--shiki-dark":`#666666`}},`, `,-1),s(`span`,A,[r(Z,{class:`twoslash-hover`,"popper-class":`shiki twoslash-floating vp-copy-ignore vp-code`,theme:`twoslash`},{popper:e(({})=>[...l[44]||=[s(`span`,{class:`twoslash-popup-container vp-copy-ignore`},[s(`code`,{class:`twoslash-popup-code`},[s(`span`,{style:{"--shiki-light":`#B07D48`,"--shiki-dark":`#BD976A`}},`ThemeBaseCollection`),s(`span`,{style:{"--shiki-light":`#999999`,"--shiki-dark":`#666666`}},`.`),s(`span`,{style:{"--shiki-light":`#B07D48`,"--shiki-dark":`#BD976A`}},`dir`),s(`span`,{style:{"--shiki-light":`#393A34`,"--shiki-dark":`#DBD7CAEE`}},`: `),s(`span`,{style:{"--shiki-light":`#B07D48`,"--shiki-dark":`#BD976A`}},`string`)]),s(`div`,{class:`twoslash-popup-docs vp-doc`,"vp-content":``},[s(`p`,null,`文档集合目录,相对于源目录`)])],-1)]]),default:e(()=>[l[45]||=s(`span`,null,`dir`,-1)]),_:1})]),l[54]||=s(`span`,{style:{"--shiki-light":`#999999`,"--shiki-dark":`#666666`}},`: `,-1),l[55]||=s(`span`,{style:{"--shiki-light":`#B5695977`,"--shiki-dark":`#C98A7D77`}},`'`,-1),l[56]||=s(`span`,{style:{"--shiki-light":`#B56959`,"--shiki-dark":`#C98A7D`}},`blog`,-1),l[57]||=s(`span`,{style:{"--shiki-light":`#B5695977`,"--shiki-dark":`#C98A7D77`}},`'`,-1),l[58]||=s(`span`,{style:{"--shiki-light":`#999999`,"--shiki-dark":`#666666`}},`, `,-1),s(`span`,j,[r(Z,{class:`twoslash-hover`,"popper-class":`shiki twoslash-floating vp-copy-ignore vp-code`,theme:`twoslash`},{popper:e(({})=>[...l[46]||=[s(`span`,{class:`twoslash-popup-container vp-copy-ignore`},[s(`code`,{class:`twoslash-popup-code`},[s(`span`,{style:{"--shiki-light":`#B07D48`,"--shiki-dark":`#BD976A`}},`ThemeBaseCollection`),s(`span`,{style:{"--shiki-light":`#999999`,"--shiki-dark":`#666666`}},`.`),s(`span`,{style:{"--shiki-light":`#B07D48`,"--shiki-dark":`#BD976A`}},`title`),s(`span`,{style:{"--shiki-light":`#393A34`,"--shiki-dark":`#DBD7CAEE`}},`: `),s(`span`,{style:{"--shiki-light":`#B07D48`,"--shiki-dark":`#BD976A`}},`string`)]),s(`div`,{class:`twoslash-popup-docs vp-doc`,"vp-content":``},[s(`p`,null,`文档集合标题`)])],-1)]]),default:e(()=>[l[47]||=s(`span`,null,`title`,-1)]),_:1})]),l[59]||=s(`span`,{style:{"--shiki-light":`#999999`,"--shiki-dark":`#666666`}},`: `,-1),l[60]||=s(`span`,{style:{"--shiki-light":`#B5695977`,"--shiki-dark":`#C98A7D77`}},`'`,-1),l[61]||=s(`span`,{style:{"--shiki-light":`#B56959`,"--shiki-dark":`#C98A7D`}},`Blog`,-1),l[62]||=s(`span`,{style:{"--shiki-light":`#B5695977`,"--shiki-dark":`#C98A7D77`}},`'`,-1),l[63]||=s(`span`,{style:{"--shiki-light":`#999999`,"--shiki-dark":`#666666`}},` } `,-1)]),l[71]||=a(`
`,-1),l[72]||=s(`span`,{class:`line`},[s(`span`,{style:{"--shiki-light":`#999999`,"--shiki-dark":`#666666`}},` ]`)],-1),l[73]||=a(`
`,-1),l[74]||=s(`span`,{class:`line`},[s(`span`,{style:{"--shiki-light":`#999999`,"--shiki-dark":`#666666`}},` })`)],-1),l[75]||=a(`
`,-1),l[76]||=s(`span`,{class:`line`},[s(`span`,{style:{"--shiki-light":`#999999`,"--shiki-dark":`#666666`}},`})`)],-1)])])])]),tab1:e(({value:t,isActive:n})=>[s(`div`,M,[s(`pre`,N,[s(`code`,P,[s(`span`,F,[l[79]||=s(`span`,{style:{"--shiki-light":`#1E754F`,"--shiki-dark":`#4D9375`}},`import`,-1),l[80]||=s(`span`,{style:{"--shiki-light":`#999999`,"--shiki-dark":`#666666`}},` {`,-1),l[81]||=s(`span`,{style:{"--shiki-light":`#B07D48`,"--shiki-dark":`#BD976A`}},` `,-1),s(`span`,I,[r(Z,{class:`twoslash-hover`,"popper-class":`shiki twoslash-floating vp-copy-ignore vp-code`,theme:`twoslash`},{popper:e(({})=>[...l[77]||=[s(`span`,{class:`twoslash-popup-container vp-copy-ignore`},[s(`code`,{class:`twoslash-popup-code`},[s(`span`,{style:{"--shiki-light":`#AB5959`,"--shiki-dark":`#CB7676`}},`function`),s(`span`,{style:{"--shiki-light":`#59873A`,"--shiki-dark":`#80A665`}},` defineThemeConfig`),s(`span`,{style:{"--shiki-light":`#999999`,"--shiki-dark":`#666666`}},`(`),s(`span`,{style:{"--shiki-light":`#B07D48`,"--shiki-dark":`#BD976A`}},`config`),s(`span`,{style:{"--shiki-light":`#999999`,"--shiki-dark":`#666666`}},`: `),s(`span`,{style:{"--shiki-light":`#2E8F82`,"--shiki-dark":`#5DA994`}},`ThemeConfig`),s(`span`,{style:{"--shiki-light":`#999999`,"--shiki-dark":`#666666`}},`):`),s(`span`,{style:{"--shiki-light":`#2E8F82`,"--shiki-dark":`#5DA994`}},` ThemeConfig`)]),s(`div`,{class:`twoslash-popup-docs vp-doc`,"vp-content":``},[s(`p`,null,[a(`Theme configuration helper function, used in separate `),s(`code`,null,`plume.config.ts`)]),a(`
`),s(`p`,null,[a(`主题配置,在单独的 `),s(`code`,null,`plume.config.ts`),a(` 中使用的类型帮助函数`)])])],-1)]]),default:e(()=>[l[78]||=s(`span`,null,`defineThemeConfig`,-1)]),_:1})]),l[82]||=s(`span`,{style:{"--shiki-light":`#999999`,"--shiki-dark":`#666666`}},` }`,-1),l[83]||=s(`span`,{style:{"--shiki-light":`#1E754F`,"--shiki-dark":`#4D9375`}},` from`,-1),l[84]||=s(`span`,{style:{"--shiki-light":`#B5695977`,"--shiki-dark":`#C98A7D77`}},` '`,-1),l[85]||=s(`span`,{style:{"--shiki-light":`#B56959`,"--shiki-dark":`#C98A7D`}},`vuepress-theme-plume`,-1),l[86]||=s(`span`,{style:{"--shiki-light":`#B5695977`,"--shiki-dark":`#C98A7D77`}},`'`,-1)]),l[119]||=a(`
`,-1),l[120]||=s(`span`,{class:`line`},null,-1),l[121]||=a(`
`,-1),s(`span`,L,[l[89]||=s(`span`,{style:{"--shiki-light":`#1E754F`,"--shiki-dark":`#4D9375`}},`export`,-1),l[90]||=s(`span`,{style:{"--shiki-light":`#1E754F`,"--shiki-dark":`#4D9375`}},` default`,-1),l[91]||=s(`span`,{style:{"--shiki-light":`#59873A`,"--shiki-dark":`#80A665`}},` `,-1),s(`span`,R,[r(Z,{class:`twoslash-hover`,"popper-class":`shiki twoslash-floating vp-copy-ignore vp-code`,theme:`twoslash`},{popper:e(({})=>[...l[87]||=[s(`span`,{class:`twoslash-popup-container vp-copy-ignore`},[s(`code`,{class:`twoslash-popup-code`},[s(`span`,{style:{"--shiki-light":`#AB5959`,"--shiki-dark":`#CB7676`}},`function`),s(`span`,{style:{"--shiki-light":`#59873A`,"--shiki-dark":`#80A665`}},` defineThemeConfig`),s(`span`,{style:{"--shiki-light":`#999999`,"--shiki-dark":`#666666`}},`(`),s(`span`,{style:{"--shiki-light":`#B07D48`,"--shiki-dark":`#BD976A`}},`config`),s(`span`,{style:{"--shiki-light":`#999999`,"--shiki-dark":`#666666`}},`: `),s(`span`,{style:{"--shiki-light":`#2E8F82`,"--shiki-dark":`#5DA994`}},`ThemeConfig`),s(`span`,{style:{"--shiki-light":`#999999`,"--shiki-dark":`#666666`}},`):`),s(`span`,{style:{"--shiki-light":`#2E8F82`,"--shiki-dark":`#5DA994`}},` ThemeConfig`)]),s(`div`,{class:`twoslash-popup-docs vp-doc`,"vp-content":``},[s(`p`,null,[a(`Theme configuration helper function, used in separate `),s(`code`,null,`plume.config.ts`)]),a(`
`),s(`p`,null,[a(`主题配置,在单独的 `),s(`code`,null,`plume.config.ts`),a(` 中使用的类型帮助函数`)])])],-1)]]),default:e(()=>[l[88]||=s(`span`,null,`defineThemeConfig`,-1)]),_:1})]),l[92]||=s(`span`,{style:{"--shiki-light":`#999999`,"--shiki-dark":`#666666`}},`({`,-1)]),l[122]||=a(`
`,-1),s(`span`,z,[l[95]||=s(`span`,{style:{"--shiki-light":`#998418`,"--shiki-dark":`#B8A965`}},` `,-1),s(`span`,B,[r(Z,{class:`twoslash-hover`,"popper-class":`shiki twoslash-floating vp-copy-ignore vp-code`,theme:`twoslash`},{popper:e(({})=>[...l[93]||=[s(`span`,{class:`twoslash-popup-container vp-copy-ignore`},[s(`code`,{class:`twoslash-popup-code`},[s(`span`,{style:{"--shiki-light":`#B07D48`,"--shiki-dark":`#BD976A`}},`ThemeLocale`),s(`span`,{style:{"--shiki-light":`#999999`,"--shiki-dark":`#666666`}},`.`),s(`span`,{style:{"--shiki-light":`#B07D48`,"--shiki-dark":`#BD976A`}},`collections`),s(`span`,{style:{"--shiki-light":`#AB5959`,"--shiki-dark":`#CB7676`}},`?:`),s(`span`,{style:{"--shiki-light":`#B07D48`,"--shiki-dark":`#BD976A`}},` ThemeCollections`),s(`span`,{style:{"--shiki-light":`#AB5959`,"--shiki-dark":`#CB7676`}},` |`),s(`span`,{style:{"--shiki-light":`#AB5959`,"--shiki-dark":`#CB7676`}},` undefined`)]),s(`div`,{class:`twoslash-popup-docs vp-doc`,"vp-content":``},[s(`p`,null,`文章集合,当前支持 博客类型 或 文档类型`)])],-1)]]),default:e(()=>[l[94]||=s(`span`,null,`collections`,-1)]),_:1})]),l[96]||=s(`span`,{style:{"--shiki-light":`#999999`,"--shiki-dark":`#666666`}},`: [`,-1)]),l[123]||=a(`
`,-1),s(`span`,V,[l[103]||=s(`span`,{style:{"--shiki-light":`#999999`,"--shiki-dark":`#666666`}},` { `,-1),s(`span`,H,[r(Z,{class:`twoslash-hover`,"popper-class":`shiki twoslash-floating vp-copy-ignore vp-code`,theme:`twoslash`},{popper:e(({})=>[...l[97]||=[s(`span`,{class:`twoslash-popup-container vp-copy-ignore`},[s(`code`,{class:`twoslash-popup-code`},[s(`span`,{style:{"--shiki-light":`#B07D48`,"--shiki-dark":`#BD976A`}},`ThemePostCollection`),s(`span`,{style:{"--shiki-light":`#999999`,"--shiki-dark":`#666666`}},`.`),s(`span`,{style:{"--shiki-light":`#B07D48`,"--shiki-dark":`#BD976A`}},`type`),s(`span`,{style:{"--shiki-light":`#393A34`,"--shiki-dark":`#DBD7CAEE`}},`: `),s(`span`,{style:{"--shiki-light":`#B5695977`,"--shiki-dark":`#C98A7D77`}},`"`),s(`span`,{style:{"--shiki-light":`#B56959`,"--shiki-dark":`#C98A7D`}},`post`),s(`span`,{style:{"--shiki-light":`#B5695977`,"--shiki-dark":`#C98A7D77`}},`"`)]),s(`div`,{class:`twoslash-popup-docs vp-doc`,"vp-content":``},[s(`p`,null,`文档集合类型`),a(`
`),s(`ul`,null,[a(`
`),s(`li`,null,[s(`code`,null,`post`),a(`: 文章列表(可用于 博客、专栏等)`)]),a(`
`),s(`li`,null,[s(`code`,null,`doc`),a(`: 文档(可用于 笔记、知识库等)`)]),a(`
`)])])],-1)]]),default:e(()=>[l[98]||=s(`span`,null,`type`,-1)]),_:1})]),l[104]||=s(`span`,{style:{"--shiki-light":`#999999`,"--shiki-dark":`#666666`}},`: `,-1),l[105]||=s(`span`,{style:{"--shiki-light":`#B5695977`,"--shiki-dark":`#C98A7D77`}},`'`,-1),l[106]||=s(`span`,{style:{"--shiki-light":`#B56959`,"--shiki-dark":`#C98A7D`}},`post`,-1),l[107]||=s(`span`,{style:{"--shiki-light":`#B5695977`,"--shiki-dark":`#C98A7D77`}},`'`,-1),l[108]||=s(`span`,{style:{"--shiki-light":`#999999`,"--shiki-dark":`#666666`}},`, `,-1),s(`span`,U,[r(Z,{class:`twoslash-hover`,"popper-class":`shiki twoslash-floating vp-copy-ignore vp-code`,theme:`twoslash`},{popper:e(({})=>[...l[99]||=[s(`span`,{class:`twoslash-popup-container vp-copy-ignore`},[s(`code`,{class:`twoslash-popup-code`},[s(`span`,{style:{"--shiki-light":`#B07D48`,"--shiki-dark":`#BD976A`}},`ThemeBaseCollection`),s(`span`,{style:{"--shiki-light":`#999999`,"--shiki-dark":`#666666`}},`.`),s(`span`,{style:{"--shiki-light":`#B07D48`,"--shiki-dark":`#BD976A`}},`dir`),s(`span`,{style:{"--shiki-light":`#393A34`,"--shiki-dark":`#DBD7CAEE`}},`: `),s(`span`,{style:{"--shiki-light":`#B07D48`,"--shiki-dark":`#BD976A`}},`string`)]),s(`div`,{class:`twoslash-popup-docs vp-doc`,"vp-content":``},[s(`p`,null,`文档集合目录,相对于源目录`)])],-1)]]),default:e(()=>[l[100]||=s(`span`,null,`dir`,-1)]),_:1})]),l[109]||=s(`span`,{style:{"--shiki-light":`#999999`,"--shiki-dark":`#666666`}},`: `,-1),l[110]||=s(`span`,{style:{"--shiki-light":`#B5695977`,"--shiki-dark":`#C98A7D77`}},`'`,-1),l[111]||=s(`span`,{style:{"--shiki-light":`#B56959`,"--shiki-dark":`#C98A7D`}},`blog`,-1),l[112]||=s(`span`,{style:{"--shiki-light":`#B5695977`,"--shiki-dark":`#C98A7D77`}},`'`,-1),l[113]||=s(`span`,{style:{"--shiki-light":`#999999`,"--shiki-dark":`#666666`}},`, `,-1),s(`span`,W,[r(Z,{class:`twoslash-hover`,"popper-class":`shiki twoslash-floating vp-copy-ignore vp-code`,theme:`twoslash`},{popper:e(({})=>[...l[101]||=[s(`span`,{class:`twoslash-popup-container vp-copy-ignore`},[s(`code`,{class:`twoslash-popup-code`},[s(`span`,{style:{"--shiki-light":`#B07D48`,"--shiki-dark":`#BD976A`}},`ThemeBaseCollection`),s(`span`,{style:{"--shiki-light":`#999999`,"--shiki-dark":`#666666`}},`.`),s(`span`,{style:{"--shiki-light":`#B07D48`,"--shiki-dark":`#BD976A`}},`title`),s(`span`,{style:{"--shiki-light":`#393A34`,"--shiki-dark":`#DBD7CAEE`}},`: `),s(`span`,{style:{"--shiki-light":`#B07D48`,"--shiki-dark":`#BD976A`}},`string`)]),s(`div`,{class:`twoslash-popup-docs vp-doc`,"vp-content":``},[s(`p`,null,`文档集合标题`)])],-1)]]),default:e(()=>[l[102]||=s(`span`,null,`title`,-1)]),_:1})]),l[114]||=s(`span`,{style:{"--shiki-light":`#999999`,"--shiki-dark":`#666666`}},`: `,-1),l[115]||=s(`span`,{style:{"--shiki-light":`#B5695977`,"--shiki-dark":`#C98A7D77`}},`'`,-1),l[116]||=s(`span`,{style:{"--shiki-light":`#B56959`,"--shiki-dark":`#C98A7D`}},`Blog`,-1),l[117]||=s(`span`,{style:{"--shiki-light":`#B5695977`,"--shiki-dark":`#C98A7D77`}},`'`,-1),l[118]||=s(`span`,{style:{"--shiki-light":`#999999`,"--shiki-dark":`#666666`}},` } `,-1)]),l[124]||=a(`
`,-1),l[125]||=s(`span`,{class:`line`},[s(`span`,{style:{"--shiki-light":`#999999`,"--shiki-dark":`#666666`}},` ]`)],-1),l[126]||=a(`
`,-1),l[127]||=s(`span`,{class:`line`},[s(`span`,{style:{"--shiki-light":`#999999`,"--shiki-dark":`#666666`}},`})`)],-1)])])])]),_:1}),l[130]||=s(`p`,null,[a(`Markdown articles in the `),s(`code`,null,`blog`),a(` directory are read as article lists in the post collection, generating list pages, category pages, tag pages, and other pages.`)],-1)]),l[131]||=s(`li`,null,[s(`p`,null,[s(`strong`,null,`Complete`)])],-1)])]),l[134]||=o(`<p>Key considerations in this process:</p><ul><li><p><strong><code>dir</code> Configuration Option</strong></p><p>The <code>dir</code> option in the collection configuration points to a specific folder in the source directory. All Markdown files within this folder will belong to the collection.</p></li><li><p><strong><code>type</code> Configuration Option</strong></p><p>The <code>type</code> option in the collection configuration specifies the collection type.</p><p>The collection type determines which features are provided for documents within that collection. Currently supported types include:</p><ul><li><code>post</code>: Represents a collection of fragmented articles with no or weak relationships between them.</li><li><code>doc</code>: Represents a collection of structured articles with strong, structured relationships between them, treated as a whole.</li></ul></li><li><p><strong><code>title</code> Configuration Option</strong></p><p>The <code>title</code> option in the collection configuration specifies the collection name.</p><p>In the theme, <code>title</code> is used in the breadcrumb navigation of pages.</p></li></ul><h2 id="collection-types" tabindex="-1"><a class="header-anchor" href="#collection-types"><span>Collection Types</span></a></h2><p>The collection type determines which features are provided for documents within that collection.</p><h3 id="post-collection" tabindex="-1"><a class="header-anchor" href="#post-collection"><span>Post Collection</span></a></h3><p>The post collection provides the following feature implementations:</p><ul><li>Article list page - Article pinning, article cover images, article excerpts, etc.</li><li>Article category page - Categories are automatically generated based on the directory structure.</li><li>Article tag page - Tags are generated based on the page&#39;s <code>frontmatter.tags</code>.</li><li>Article archive page - Archives are generated based on the page&#39;s <code>frontmatter.createTime</code>.</li></ul>`,7),r($,{title:`Post Collection Details`,href:`./collection-post.md`,icon:`mdi:post-outline`}),l[135]||=s(`h3`,{id:`doc-collection`,tabindex:`-1`},[s(`a`,{class:`header-anchor`,href:`#doc-collection`},[s(`span`,null,`Doc Collection`)])],-1),l[136]||=s(`p`,null,`The doc collection provides the following feature implementations:`,-1),l[137]||=s(`ul`,null,[s(`li`,null,[s(`strong`,null,`Sidebar Navigation`),a(` - Provides clear document structure navigation`)]),s(`li`,null,[s(`strong`,null,`Auto-generated Table of Contents`),a(` - Intelligently generates sidebars based on file structure`)]),s(`li`,null,[s(`strong`,null,`Multi-level Nesting Support`),a(` - Supports complex document hierarchy structures`)])],-1),r($,{title:`Doc Collection Details`,href:`./collection-doc.md`,icon:`streamline-ultimate:sidebar-line-left`}),l[138]||=s(`h2`,{id:`collection-configuration`,tabindex:`-1`},[s(`a`,{class:`header-anchor`,href:`#collection-configuration`},[s(`span`,null,`Collection Configuration`)])],-1),r($,{title:`Collection Configuration`,href:`../../config/collections.md`})])}var K=c(u,[[`render`,G]]);export{l as _pageData,K as default};