This commit is contained in:
2026-06-28 19:09:30 +02:00
parent 8b43e14dc7
commit 4817ccff2a
11 changed files with 1715 additions and 1098 deletions
+3 -3
View File
@@ -1,17 +1,17 @@
---
import { getCollection } from 'astro:content'
import { getCollection, render as renderEntry } from 'astro:content'
import PageWithTitle from '../layouts/PageWithTitle.astro'
export async function getStaticPaths() {
const posts = await getCollection('page')
return posts.map((post) => ({
params: { page: post.slug },
params: { page: post.id },
props: post,
}))
}
const post = Astro.props
const { Content } = await post.render()
const { Content } = await renderEntry(post)
---
<PageWithTitle title={post.data.title}>