diff --git a/src/pages/index.astro b/src/pages/index.astro index 561196b..3f0d86d 100644 --- a/src/pages/index.astro +++ b/src/pages/index.astro @@ -1,17 +1,26 @@ --- +import { getCollection } from 'astro:content'; +import BaseLayout from '../layouts/BaseLayout.astro'; +const docs = await getCollection('docs'); --- - - -
- - - - - -请从左侧导航栏或下方卡片中选择文档开始阅读。
++ {doc.data.description || '点击查看详情文档内容...'} +
+ + ))} +