* feat: add markdown-backed legal pages Move privacy into the Fumadocs content pipeline and add a terms page so legal copy can be managed as markdown alongside other generated pages. * save terms draft * clean up notes * Add privacy policy * Update policies * save * simplify legal page routes
30 lines
798 B
TypeScript
30 lines
798 B
TypeScript
import { createFileRoute } from "@tanstack/react-router";
|
|
import defaultMdxComponents from "fumadocs-ui/mdx";
|
|
import PrivacyContent, {
|
|
frontmatter as privacyFrontmatter,
|
|
} from "../../content/legal/privacy.md";
|
|
import { LegalPage } from "@/components/legal-page";
|
|
import { buildPageSeo } from "@/lib/seo";
|
|
|
|
export const Route = createFileRoute("/privacy")({
|
|
head: () =>
|
|
buildPageSeo({
|
|
title: privacyFrontmatter.title,
|
|
description: privacyFrontmatter.description,
|
|
path: "/privacy",
|
|
titleSuffix: "OpenSEO",
|
|
}),
|
|
component: Privacy,
|
|
});
|
|
|
|
function Privacy() {
|
|
return (
|
|
<LegalPage
|
|
title={privacyFrontmatter.title}
|
|
description={privacyFrontmatter.description}
|
|
>
|
|
<PrivacyContent components={defaultMdxComponents} />
|
|
</LegalPage>
|
|
);
|
|
}
|