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>
|
||||
|
||||
@@ -82,7 +82,7 @@ const readingSteps = [
|
||||
num: "05",
|
||||
title: "Revenir à l’archicratie",
|
||||
text:
|
||||
"L’archicratie nomme alors le régime général dans lequel cette composition devient lisible comme structure de régulation.",
|
||||
"L’archicratie nomme alors le méta-régime général dans lequel cette composition devient lisible comme structure de régulation, d'agrégation et d'évolution.",
|
||||
},
|
||||
];
|
||||
|
||||
|
||||
@@ -730,8 +730,9 @@ const approfondirPortalItems = [
|
||||
|
||||
.glossary-map-block__head h2,
|
||||
.glossary-section h2{
|
||||
font-size: clamp(1.2rem, 3.8vw, 1.55rem);
|
||||
line-height: 1.02;
|
||||
font-size: clamp(1.18rem, 3.2vw, 1.42rem);
|
||||
line-height: 1.04;
|
||||
letter-spacing: -.02em;
|
||||
text-wrap: pretty;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user