Files
archicratie-edition/src/pages/glossaire/[...slug].astro
Archicratia 683b02f4a0
All checks were successful
SMOKE / smoke (push) Successful in 11s
CI / build-and-anchors (push) Successful in 40s
CI / build-and-anchors (pull_request) Successful in 38s
chore(astro): upgrade to astro 6 with legacy content compatibility
2026-03-11 17:17:02 +01:00

29 lines
729 B
Plaintext

---
import EditionLayout from "../../layouts/EditionLayout.astro";
import { getCollection, render } from "astro:content";
export async function getStaticPaths() {
const entries = await getCollection("glossaire");
return entries.map((entry) => ({
params: { slug: String(entry.id).replace(/\.(md|mdx)$/i, "") },
props: { entry },
}));
}
const { entry } = Astro.props;
const { Content } = await render(entry);
---
<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>