add notes and web pages for them

This commit is contained in:
2025-08-06 01:15:18 +01:00
parent 5dc7db36f8
commit 2936ab3384
12 changed files with 212 additions and 22 deletions

View File

@@ -0,0 +1,20 @@
---
import { type CollectionEntry, getCollection } from "astro:content";
import BookRead from "../../layouts/BookRead.astro";
export async function getStaticPaths() {
const posts = await getCollection("read");
return posts.map((post) => ({
params: { slug: post.slug },
props: post,
}));
}
type Props = CollectionEntry<"read">;
const post = Astro.props;
const { Content } = await post.render();
---
<BookRead {...post.data}>
<Content />
</BookRead>