feat(site): design fiche technique, rubriques, filtres par tags, à propos et contact

This commit is contained in:
Lucas committed 2026-10-21 15:38:49 +02:00
1 parent 693f30bca3
commit dd66a63029
26 files changed
+671 -379

No files matched your search

+18
View File
@@ -0,0 +1,18 @@
---
import { getCollection, render } from 'astro:content';
import Projet from '../../layouts/Projet.astro';
export async function getStaticPaths() {
const projets = await getCollection(
'projets',
({ data }) => data.categorie === 'atelier' && !data.brouillon,
);
return projets.map((projet) => ({ params: { slug: projet.id }, props: { projet } }));
}
const { projet } = Astro.props;
const { Content } = await render(projet);
---
<Projet {...projet.data}>
<Content />
</Projet>