Add password-protected NCERT workshop pages

This commit is contained in:
Neeldhara Misra 2026-07-16 10:45:20 +05:30
parent 3f53d3c289
commit 3c694517fc
12 changed files with 871 additions and 16 deletions

View file

@ -42,6 +42,26 @@ export function getEventNavItems(event: Event) {
const peoplePage = eventPages.find((page) => page.type === "people");
const visualPage = eventPages.find((page) => page.type === "visual");
if (event.slug === "ncert") {
const directSectionIds = ["participants", "summary-minutes"];
return [
...(!event.hideOverviewNav ? [{ label: "Overview", href: basePath }] : []),
...directSectionIds.flatMap((id) => {
const page = sectionPages.find((entry) => entry.id === id);
return page ? [{ label: page.label, href: page.href }] : [];
}),
...(schedulePage ? [{ label: "Schedule", href: schedulePage.href }] : []),
{
label: "Information",
items: infoPages.map((page) => ({
label: page.title,
href: `${basePath}info/${page.slug}/`,
})),
},
];
}
if (event.slug === "barcamp") {
return [
...(!event.hideOverviewNav ? [{ label: "Overview", href: basePath }] : []),