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

{entry.data.title}

{new Date(entry.data.pubDate).toISOString().split('T')[0]}
← Back to posts