--- import { getCollection, render as renderEntry } from 'astro:content' import BlogPost from '../../layouts/BlogPost.astro' export async function getStaticPaths() { const posts = await getCollection('blog') return posts.map((post) => ({ params: { slug: post.id }, props: post, })) } const post = Astro.props const { Content, headings, remarkPluginFrontmatter } = await renderEntry(post) ---