mirror of
https://github.com/cupcakearmy/nicco.io.git
synced 2026-07-27 01:36:08 +00:00
updates
This commit is contained in:
@@ -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}>
|
||||
|
||||
Reference in New Issue
Block a user