--- import BaseLayout from '../../layouts/BaseLayout.astro'; import { getCollection, render } from 'astro:content'; 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 } = await render(post); ---
Back to Blog

{post.data.title}

{post.data.tags.length > 0 && ( )}