37 lines
989 B
Plaintext
37 lines
989 B
Plaintext
---
|
|
import EditionLayout from "../../layouts/EditionLayout.astro";
|
|
import { getCollection } from "astro:content";
|
|
import EditionToc from "../../components/EditionToc.astro";
|
|
import LocalToc from "../../components/LocalToc.astro";
|
|
|
|
export async function getStaticPaths() {
|
|
const entries = (await getCollection("archicratie"))
|
|
.filter((e) => !e.slug.startsWith("archicrat-ia/"));
|
|
return entries.map((entry) => ({
|
|
params: { slug: entry.slug },
|
|
props: { entry },
|
|
}));
|
|
}
|
|
|
|
const { entry } = Astro.props;
|
|
const { Content, headings } = await entry.render();
|
|
---
|
|
|
|
<EditionLayout
|
|
title={entry.data.title}
|
|
editionLabel="Archicratie"
|
|
editionKey="archicratie"
|
|
statusLabel="modèle sociopolitique"
|
|
statusKey="modele_sociopolitique"
|
|
level={entry.data.level}
|
|
version={entry.data.version}
|
|
>
|
|
<Fragment slot="aside">
|
|
<EditionToc currentSlug={entry.slug} />
|
|
<LocalToc headings={headings} />
|
|
</Fragment>
|
|
|
|
<h1>{entry.data.title}</h1>
|
|
<Content />
|
|
</EditionLayout>
|