feat(glossary): add step 21 smart navigation
All checks were successful
SMOKE / smoke (push) Successful in 13s
CI / build-and-anchors (push) Successful in 1m4s
CI / build-and-anchors (pull_request) Successful in 35s

This commit is contained in:
2026-04-26 13:03:45 +02:00
parent 689619d14d
commit 9f88112aca
45 changed files with 1020 additions and 112 deletions

View File

@@ -6,12 +6,14 @@ import GlossaryEntryLegacyNote from "../../components/GlossaryEntryLegacyNote.as
import GlossaryEntryHero from "../../components/GlossaryEntryHero.astro";
import GlossaryEntryBody from "../../components/GlossaryEntryBody.astro";
import GlossaryEntryStickySync from "../../components/GlossaryEntryStickySync.astro";
import GlossarySmartNav from "../../components/GlossarySmartNav.astro";
import { getCollection, render } from "astro:content";
import {
getDisplayDomain,
getDisplayFamily,
getDisplayLevel,
getRelationBlocks,
getGlossarySmartNavigation,
normalizeGlossarySlug,
} from "../../lib/glossary";
@@ -61,6 +63,7 @@ const isAliasRoute = requestedSlug !== canonicalSlug;
const canonicalHref = `/glossaire/${canonicalSlug}/`;
const relationBlocks = getRelationBlocks(entry, allEntries);
const smartNavigation = getGlossarySmartNavigation(entry, allEntries);
const displayFamily = getDisplayFamily(entry);
const displayDomain = getDisplayDomain(entry);
@@ -93,6 +96,8 @@ const displayLevel = getDisplayLevel(entry);
comparisonTraditions={entry.data.comparisonTraditions ?? []}
/>
<GlossarySmartNav smartNavigation={smartNavigation} />
<GlossaryEntryBody>
<Content />
</GlossaryEntryBody>