Give /kit its own page so the printed facilitator-guide link still works after cutover.
This commit is contained in:
1 parent
711ef736df
commit
8f92848e2b
11 files changed
+177
-7
No files matched your search
@@ -91,7 +91,7 @@ export function legalPageMetadata(
|
||||
}
|
||||
|
||||
/**
|
||||
* Public legal documents (`/privacy`, `/terms`, `/cookies`).
|
||||
* Public Content page Template documents (`/privacy`, `/terms`, `/cookies`, `/kit`).
|
||||
*
|
||||
* Figma: "Content page Template" (19003:23305) — ContentBanner guide
|
||||
* (22078:806964) + article column (19003:23574). Body stacks follow
|
||||
|
||||
@@ -1,6 +1,27 @@
|
||||
import { redirect } from "next/navigation";
|
||||
/**
|
||||
* Figma: "C8 Kit page / 1440+" (25218:120616) on "Content page Template" (19003:23305)
|
||||
* https://www.figma.com/design/agv0VBLiBlcnSAaiAORgPR/Community-Rule-System?node-id=25218-120616
|
||||
*/
|
||||
import type { Metadata } from "next";
|
||||
import messages from "../../../messages/en/index";
|
||||
import { legalPathForSlug } from "../../../lib/legalSyntheticPost";
|
||||
import { routeMetadata } from "../../../lib/siteMetadata";
|
||||
import LegalDocumentPage, {
|
||||
legalPageMetadata,
|
||||
} from "../_components/LegalDocumentPage";
|
||||
|
||||
/** Office-hours pointer used in the 48-hour follow-up email. */
|
||||
export default function KitPage() {
|
||||
redirect("/workshops");
|
||||
const SLUG = "kit" as const;
|
||||
const PATH = legalPathForSlug(SLUG);
|
||||
|
||||
export function generateMetadata(): Metadata {
|
||||
return routeMetadata(
|
||||
PATH,
|
||||
legalPageMetadata(messages.metadata.kit, messages.pages.kit),
|
||||
);
|
||||
}
|
||||
|
||||
export default function KitPage() {
|
||||
return (
|
||||
<LegalDocumentPage slug={SLUG} path={PATH} page={messages.pages.kit} />
|
||||
);
|
||||
}
|
||||
Reference in new issue
Block a user