--- import { getCollection } from 'astro:content'; import Picture from 'components/Picture.astro' import Article from 'layouts/Article.astro' export const prerender = true // 1. Generate a new path for every collection entry export async function getStaticPaths() { const blogEntries = await getCollection('projects'); return blogEntries.map((entry) => ({ params: { project: entry.slug }, props: { entry }, })) } // 2. For your template, you can get the entry directly from the prop const { entry } = Astro.props as Awaited>[0]['props']; const { Content } = await entry.render(); ---

{entry.data.title}

{entry.data.created && ( Sortie initial le {entry.data.created.toLocaleDateString('fr')} )}