diff --git a/next.config.ts b/next.config.ts index c5b23590..5b5c5374 100644 --- a/next.config.ts +++ b/next.config.ts @@ -27,6 +27,12 @@ const nextConfig: NextConfig = { }, async redirects() { return [ + // The constitution's principles now live on the about page. + { + source: "/constitution", + destination: "/about#principles", + permanent: true, + }, { source: "/great-canadian-builders", destination: "/builders", diff --git a/src/app/constitution/page.tsx b/src/app/about/PrinciplesBlock.tsx similarity index 51% rename from src/app/constitution/page.tsx rename to src/app/about/PrinciplesBlock.tsx index 84a18ef9..34f5c617 100644 --- a/src/app/constitution/page.tsx +++ b/src/app/about/PrinciplesBlock.tsx @@ -1,13 +1,4 @@ -import type { Metadata } from "next"; - -export const metadata: Metadata = { - title: "Constitution", - description: - "The principles that guide Build Canada in its mission to make Canada the most prosperous country in the world.", - alternates: { - canonical: "/constitution", - }, -}; +import SectionLabel from "@/components/SectionLabel"; const principles = [ { @@ -40,45 +31,31 @@ const principles = [ }, ]; -export default function ConstitutionPage() { +export default function PrinciplesBlock() { return ( -
-
-
-
-

Build Canada

-

- Constitution -

-

- Build Canada’s mission is to make Canada the most prosperous - country in the world. -

-

- These principles guide our work. -

-
-
- -
    +
    +
    + Principles +
      {principles.map((principle, index) => (
    1. -
    2. ))}
    -
-
+ + ); } diff --git a/src/app/about/page.tsx b/src/app/about/page.tsx index 0cae57b1..4f8e4270 100644 --- a/src/app/about/page.tsx +++ b/src/app/about/page.tsx @@ -1,6 +1,7 @@ import { fetchFaqs, fetchTeamMembers, getSiteConfig } from "@/lib/api"; import TeamBlock from "./TeamBlock"; import QnaBlock from "./QnaBlock"; +import PrinciplesBlock from "./PrinciplesBlock"; import QuickLinks from "./QuickLinks"; import { buildGraph } from "@/lib/schemas/graph"; import { generateOrganizationSchema } from "@/lib/schemas/generators/organization"; @@ -9,6 +10,7 @@ import { generateFAQPageSchema } from "@/lib/schemas/generators/faq-page"; const quickLinks = [ { label: "Core Team", href: "#core-team" }, { label: "Board", href: "#board" }, + { label: "Principles", href: "#principles" }, { label: "FAQs", href: "#faqs" }, ]; @@ -54,6 +56,7 @@ export default async function AboutPage() { + ); diff --git a/src/app/sitemap.ts b/src/app/sitemap.ts index 1b554de9..6ea0beb1 100644 --- a/src/app/sitemap.ts +++ b/src/app/sitemap.ts @@ -51,7 +51,6 @@ export default async function sitemap(): Promise { { url: `${baseUrl}/builders`, lastModified: new Date(), changeFrequency: "monthly", priority: 0.7 }, { url: buildAbsoluteUrl(baseUrl), lastModified: new Date(), changeFrequency: "daily", priority: 0.9 }, { url: `${baseUrl}/about`, lastModified: new Date(), changeFrequency: "monthly", priority: 0.5 }, - { url: `${baseUrl}/constitution`, lastModified: new Date(), changeFrequency: "yearly", priority: 0.5 }, { url: `${baseUrl}/privacy-notice`, lastModified: new Date(), changeFrequency: "yearly", priority: 0.3 }, ];