feat(glossary): add step 21 smart navigation
This commit is contained in:
@@ -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>
|
||||
|
||||
Reference in New Issue
Block a user