---
import { getCollection } from 'astro:content';
import Base from '../../layouts/Base.astro';
const projets = (await getCollection('projets', ({ data }) => !data.brouillon)).sort(
(a, b) => b.data.date.valueOf() - a.data.date.valueOf(),
);
const sections = [
{ titre: 'Réalisations', items: projets.filter((p) => p.data.categorie === 'client') },
{ titre: 'Atelier', items: projets.filter((p) => p.data.categorie === 'atelier') },
];
---