delete post

This commit is contained in:
2026-02-18 20:20:11 +08:00
parent c7b816a284
commit d36278edc4
24 changed files with 691 additions and 2216 deletions

View File

@@ -1,16 +0,0 @@
---
import { getCollection } from "astro:content";
export async function getStaticPaths() {
const postEntries = await getCollection("post");
return postEntries.map((entry) => ({
params: { slug: entry.slug },
props: { entry },
}));
}
const { entry } = Astro.props;
const { Content } = await entry.render();
---
<Content />