--- // src/pages/docs/[slug].astro import { getCollection } from 'astro:content'; export async function getStaticPaths() { const entries = await getCollection('docs'); return entries.map((entry) => ({ params: { slug: entry.slug }, props: { entry }, })); } const { entry } = Astro.props; const { Content } = await entry.render(); ---

{entry.data.title}