From 67128a9ca1990e6898308bac1a4f7a7df26965ff Mon Sep 17 00:00:00 2001 From: Archicratia Date: Fri, 13 Mar 2026 15:11:39 +0100 Subject: [PATCH] refactor(glossaire): introduce dedicated GlossaryLayout wrapper --- src/layouts/GlossaryLayout.astro | 24 ++++++++++++++++++++++++ src/pages/glossaire/[...slug].astro | 12 ++++-------- 2 files changed, 28 insertions(+), 8 deletions(-) create mode 100644 src/layouts/GlossaryLayout.astro diff --git a/src/layouts/GlossaryLayout.astro b/src/layouts/GlossaryLayout.astro new file mode 100644 index 0000000..67b7f90 --- /dev/null +++ b/src/layouts/GlossaryLayout.astro @@ -0,0 +1,24 @@ +--- +import EditionLayout from "./EditionLayout.astro"; + +const { + title, + version, +} = Astro.props; +--- + + + + + + + + \ No newline at end of file diff --git a/src/pages/glossaire/[...slug].astro b/src/pages/glossaire/[...slug].astro index da3cdca..662d6c2 100644 --- a/src/pages/glossaire/[...slug].astro +++ b/src/pages/glossaire/[...slug].astro @@ -1,5 +1,5 @@ --- -import EditionLayout from "../../layouts/EditionLayout.astro"; +import GlossaryLayout from "../../layouts/GlossaryLayout.astro"; import GlossaryAside from "../../components/GlossaryAside.astro"; import { getCollection, render } from "astro:content"; @@ -17,13 +17,8 @@ const allEntries = await getCollection("glossaire"); const { Content } = await render(entry); --- - @@ -32,5 +27,6 @@ const { Content } = await render(entry);

{entry.data.term}

{entry.data.definitionShort}

+ -
\ No newline at end of file + \ No newline at end of file