diff --git a/src/data/events.ts b/src/data/events.ts index 5dfe17b..57fe4b3 100644 --- a/src/data/events.ts +++ b/src/data/events.ts @@ -130,7 +130,7 @@ export const events: Event[] = [ { year: "2026", slug: "ncert", - href: "/ncert/", + href: "/2026/ncert/", title: "Workshop on Development of Computer Science Textbooks", shortTitle: "NCERT Textbook Workshop", subtitle: "Four days of collaborative curriculum and textbook development", diff --git a/src/pages/ncert/[page].astro b/src/pages/ncert/[page].astro deleted file mode 100644 index cd4b584..0000000 --- a/src/pages/ncert/[page].astro +++ /dev/null @@ -1,25 +0,0 @@ ---- -import EventPage from "../../components/EventPage.astro"; -import { getEventByParams, getEventPageEntries } from "../../data/events"; - -export function getStaticPaths() { - const event = getEventByParams("2026", "ncert"); - - if (!event) return []; - - return getEventPageEntries(event) - .filter((pageEntry) => pageEntry.type !== "overview") - .map((pageEntry) => ({ - params: { page: pageEntry.id }, - props: { event, pageEntry }, - })); -} - -const { event, pageEntry } = Astro.props; - -if (!event || !pageEntry) { - return Astro.redirect("/ncert/"); -} ---- - - diff --git a/src/pages/ncert/index.astro b/src/pages/ncert/index.astro deleted file mode 100644 index eeec8a5..0000000 --- a/src/pages/ncert/index.astro +++ /dev/null @@ -1,14 +0,0 @@ ---- -import EventPage from "../../components/EventPage.astro"; -import { getEventByParams, getEventPageEntry } from "../../data/events"; - -const event = getEventByParams("2026", "ncert"); - -if (!event) { - return Astro.redirect("/"); -} - -const pageEntry = getEventPageEntry(event); ---- - - diff --git a/src/pages/ncert/info/[infoSlug].astro b/src/pages/ncert/info/[infoSlug].astro deleted file mode 100644 index 56df7f5..0000000 --- a/src/pages/ncert/info/[infoSlug].astro +++ /dev/null @@ -1,56 +0,0 @@ ---- -import InfoPageSections from "../../../components/InfoPageSections.astro"; -import SiteLayout from "../../../layouts/SiteLayout.astro"; -import { getEventNavItems } from "../../../data/eventNav"; -import { getEventBasePath, getEventByParams } from "../../../data/events"; -import { infoPages } from "../../../data/info"; - -export function getStaticPaths() { - const event = getEventByParams("2026", "ncert"); - - if (!event) return []; - - return infoPages.map((page) => ({ - params: { infoSlug: page.slug }, - props: { event, page }, - })); -} - -const { event, page } = Astro.props; - -if (!event || !page) { - return Astro.redirect("/ncert/"); -} - -const eventTitle = event.shortTitle ?? event.title; -const basePath = getEventBasePath(event); ---- - - -
- -

Information

-

{page.title}

-
- -
-
- -
-
-