feat(site): design fiche technique, rubriques, filtres par tags, à propos et contact
This commit is contained in:
1 parent
693f30bca3
commit
dd66a63029
26 files changed
+671
-379
No files matched your search
@@ -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>
|
||||
Reference in new issue
Block a user