Add password-protected NCERT workshop pages
This commit is contained in:
parent
3f53d3c289
commit
3c694517fc
12 changed files with 871 additions and 16 deletions
|
|
@ -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 }] : []),
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue