+ {article.data.title}
+ {article.data.description && {article.data.description}
}
+
diff --git a/src/pages/docs/[slug].astro b/src/pages/docs/[slug].astro
deleted file mode 100644
index 3ff77f1..0000000
--- a/src/pages/docs/[slug].astro
+++ /dev/null
@@ -1,45 +0,0 @@
----
-// ------------------------------------
-// 目次用のファイル
-// ------------------------------------
-import { getCollection } from "astro:content";
-
-import Layout from "../../layouts/Layout.astro";
-
-export async function getStaticPaths() {
- const metaDatas = await getCollection("metaData");
- const docs = await getCollection("docs");
-
- // 重複の無いカテゴリ名を抽出
- return metaDatas.map((metaData) => {
- const dirPath = metaData.id.split("/").slice(0, -1).join("/");
- const extractedDocs = docs.filter((doc) => doc.id.startsWith(`${dirPath}/`));
- return {
- params: { slug: dirPath },
- props: { category: metaData.data.categoryName, docs: extractedDocs },
- };
- });
-}
-
-const { category, docs } = Astro.props;
-
-export const prerender = true;
----
-
-
- {category} ドキュメント一覧
-
-
diff --git a/src/pages/docs/index.astro b/src/pages/docs/index.astro
index 5cfbc3e..ab91f20 100644
--- a/src/pages/docs/index.astro
+++ b/src/pages/docs/index.astro
@@ -27,7 +27,7 @@ metaDatas.map((metaData) => {
entries.map((entry) => {
return (
- {entry.categoryName}
+ {entry.categoryName}
);
})