37 lines
998 B
Plaintext
37 lines
998 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() {
|
|
// ✅ Après migration : plus de filtre par prefix, on prend toute la collection
|
|
const entries = await getCollection("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="Essai-thèse"
|
|
editionKey="archicrat-ia"
|
|
statusLabel="essai-thèse"
|
|
statusKey="essai_these"
|
|
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> |