From b6d2a052bd9db4dd8f687f0e8084ff0278d4c9d6 Mon Sep 17 00:00:00 2001 From: nolawz Date: Tue, 3 Mar 2026 04:16:25 +0530 Subject: Fixed icons for events and also breadcrumb in individual event page --- src/pages/events/[...id].astro | 18 +++++++++++++----- src/pages/events/[...page].astro | 2 +- src/pages/types/[...id].astro | 2 +- 3 files changed, 15 insertions(+), 7 deletions(-) (limited to 'src/pages') diff --git a/src/pages/events/[...id].astro b/src/pages/events/[...id].astro index 44d8ec4..590a5c6 100644 --- a/src/pages/events/[...id].astro +++ b/src/pages/events/[...id].astro @@ -25,11 +25,11 @@ export async function getStaticPaths() { } const event = Astro.props -const currentPostId = Astro.params.id -const navigation = await getAdjacentEvents(currentPostId) +const currentEventId = Astro.params.id +const navigation = await getAdjacentEvents(currentEventId) const { Content, headings } = await render(event) -const tocSections = await getTOCSections(currentPostId) +const tocSections = await getTOCSections(currentEventId) --- @@ -45,7 +45,15 @@ const tocSections = await getTOCSections(currentPostId) >
@@ -100,7 +108,7 @@ const tocSections = await getTOCSections(currentPostId) { tocSections.length > 0 && ( - + ) } diff --git a/src/pages/events/[...page].astro b/src/pages/events/[...page].astro index 2625ab0..db0e307 100644 --- a/src/pages/events/[...page].astro +++ b/src/pages/events/[...page].astro @@ -29,7 +29,7 @@ const years = Object.keys(eventsByYear).sort( diff --git a/src/pages/types/[...id].astro b/src/pages/types/[...id].astro index 26640a9..0215eba 100644 --- a/src/pages/types/[...id].astro +++ b/src/pages/types/[...id].astro @@ -36,7 +36,7 @@ const { type, events } = Astro.props /> -- cgit v1.2.3