diff --git a/src/components/Sidebar.astro b/src/components/Sidebar.astro new file mode 100644 index 0000000..8d20393 --- /dev/null +++ b/src/components/Sidebar.astro @@ -0,0 +1,19 @@ +--- +import { getCollection } from 'astro:content'; +// Astro v6 中获取所有文档 +const docs = await getCollection('docs'); +--- +