From f49f5f4a0d9b287440f57e87b99930e9b166e979 Mon Sep 17 00:00:00 2001 From: kennethcheng Date: Mon, 27 Apr 2026 14:25:47 +0800 Subject: [PATCH] =?UTF-8?q?feat:=20=E6=96=B0=E5=A2=9E=E5=85=A8=E5=B1=80?= =?UTF-8?q?=E4=BE=A7=E8=BE=B9=E6=A0=8F=E5=AF=BC=E8=88=AA=E7=BB=84=E4=BB=B6?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/components/Sidebar.astro | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) create mode 100644 src/components/Sidebar.astro 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'); +--- +