chore: track site sources + ignore local env/backups

This commit is contained in:
2026-01-19 11:46:39 +01:00
parent aece8c5526
commit 5eb23a3de4
50 changed files with 3158 additions and 38 deletions

View File

@@ -0,0 +1,29 @@
---
import EditionLayout from "../../layouts/EditionLayout.astro";
import { getCollection } from "astro:content";
export async function getStaticPaths() {
const entries = await getCollection("glossaire");
return entries.map((entry) => ({
params: { slug: entry.slug },
props: { entry },
}));
}
const { entry } = Astro.props;
const { Content } = await entry.render();
---
<EditionLayout
title={entry.data.title}
editionLabel="Glossaire"
editionKey="glossaire"
statusLabel="référentiel"
statusKey="referentiel"
level={1}
version={entry.data.version}
>
<h1>{entry.data.term}</h1>
<p><em>{entry.data.definitionShort}</em></p>
<Content />
</EditionLayout>