--- import { getCollection, render } from 'astro:content'; import { Image } from 'astro:assets'; import BaseLayout from '../../layouts/BaseLayout.astro'; export async function getStaticPaths() { const posts = await getCollection('posts'); return posts.map((post) => ({ params: { slug: post.data.slug }, props: { post }, })); } const { post } = Astro.props; const { Content } = await render(post); ---

{post.data.title}

{post.data.featuredImage && {post.data.title}}