--- import { getCollection, render } from "astro:content"; import BlogHeader from "@components/Blog/BlogHeader.astro"; import Tags from "@components/Blog/Tags.astro"; import Layout from "@layouts/Layout.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 { data } = post; const { Content } = await render(post); ---