Each page is now a list of sections edited in Admin → Pages: a title (30 characters at most, for the side nav), URL ID, blurb and accent, its own content blocks, and an optional preset (Community blog, groups map, region list, partner cards, events, timeline, NGU's details). Migration 056 seeds every page as the code drew it and moves the Organization editor's blocks and volunteering into its sections. The Community blog's settings move into the Community editor. The header, footer and side nav read each page's sections from the API. The admin engine reads and writes nested collections to any depth. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
22 lines
672 B
TypeScript
22 lines
672 B
TypeScript
// Single source of truth for navigation.
|
|
// Add a page here and in App.jsx, and both tiers of the nav update.
|
|
|
|
export const PAGE_LINKS = [
|
|
{ label: "Home", path: "/" },
|
|
{ label: "Retreats", path: "/retreats" },
|
|
{ label: "Community", path: "/community" },
|
|
{ label: "Resources", path: "/resources" },
|
|
{ label: "Organization", path: "/organization" },
|
|
{ label: "History", path: "/history" },
|
|
];
|
|
|
|
// Right-side actions. `variant` picks the styling, not the destination.
|
|
export const NAV_ACTIONS = [
|
|
{ label: "Contact Us", to: "/organization#contact", variant: "ghost" },
|
|
{
|
|
label: "Give",
|
|
to: "/give",
|
|
variant: "fancy",
|
|
external: true,
|
|
},
|
|
];
|