Skip to content

Open source CapCut alternative.

TypeScript

feat(site): make donkeycut.com the home of the legal pages

David Le4bc39f69332d
diff --git a/site/src/app/cut/sitemap.ts b/site/src/app/cut/sitemap.ts
index 828c62af..58a24c19 100644
--- a/site/src/app/cut/sitemap.ts
+++ b/site/src/app/cut/sitemap.ts
@@ -3,7 +3,8 @@ import type { MetadataRoute } from "next";
import { DONKEYCUT_CANONICAL } from "@/cut/lib/hosts";
// Served at donkeycut.com/sitemap.xml via the proxy rewrite (src/proxy.ts);
-// the apex keeps its own sitemap at src/app/sitemap.ts.
+// the apex keeps its own sitemap at src/app/sitemap.ts. The legal pages are
+// canonical on this host, since they describe Donkey Cut.
export default function sitemap(): MetadataRoute.Sitemap {
return [
{
@@ -16,5 +17,15 @@ export default function sitemap(): MetadataRoute.Sitemap {
changeFrequency: "monthly",
priority: 0.8,
},
+ {
+ url: `${DONKEYCUT_CANONICAL}/privacy`,
+ changeFrequency: "yearly",
+ priority: 0.5,
+ },
+ {
+ url: `${DONKEYCUT_CANONICAL}/terms`,
+ changeFrequency: "yearly",
+ priority: 0.5,
+ },
];
}
diff --git a/site/src/app/legal/LegalPageShell.tsx b/site/src/app/legal/LegalPageShell.tsx
index 6d119ff4..0052896f 100644
--- a/site/src/app/legal/LegalPageShell.tsx
+++ b/site/src/app/legal/LegalPageShell.tsx
@@ -10,7 +10,7 @@ type Props = {
export function LegalPageShell({ children }: Props) {
return (
<main className="min-h-screen bg-[#F5EFE0] text-[#0F0E0D] antialiased [font-family:-apple-system,BlinkMacSystemFont,'Segoe_UI',sans-serif]">
- <TopNav />
+ <TopNav wordmark="Donkey Cut" />
<section className="mx-auto box-border w-full max-w-5xl px-6 py-12 md:px-10 md:py-20">
<article className="prose prose-neutral max-w-none prose-headings:font-semibold prose-headings:tracking-normal prose-h1:text-5xl prose-h1:leading-none prose-h2:mt-12 prose-h2:border-t prose-h2:border-black/15 prose-h2:pt-8 prose-a:font-semibold prose-a:text-black prose-strong:text-black md:prose-h1:text-7xl">
{children}
diff --git a/site/src/app/privacy/layout.tsx b/site/src/app/privacy/layout.tsx
index 85c09e4a..bf34d80d 100644
--- a/site/src/app/privacy/layout.tsx
+++ b/site/src/app/privacy/layout.tsx
@@ -1,12 +1,14 @@
import type { Metadata } from "next";
import type { ReactNode } from "react";
+import { DONKEYCUT_CANONICAL } from "@/cut/lib/hosts";
+
export const metadata: Metadata = {
alternates: {
- canonical: "https://donkeyuse.com/privacy",
+ canonical: `${DONKEYCUT_CANONICAL}/privacy`,
},
- description: "Read the Donkey privacy policy.",
- title: "Privacy Policy | Donkey",
+ description: "Read the Donkey Cut privacy policy.",
+ title: "Privacy Policy | Donkey Cut",
};
type Props = {
diff --git a/site/src/app/sitemap.ts b/site/src/app/sitemap.ts
index 45e47f96..bf3c10c7 100644
--- a/site/src/app/sitemap.ts
+++ b/site/src/app/sitemap.ts
@@ -38,17 +38,5 @@ export default function sitemap(): MetadataRoute.Sitemap {
priority: 0.7,
url: `${SITE_URL}/use-cases/${useCase.slug}`,
})),
- {
- changeFrequency: "yearly",
- lastModified,
- priority: 0.5,
- url: `${SITE_URL}/privacy`,
- },
- {
- changeFrequency: "yearly",
- lastModified,
- priority: 0.5,
- url: `${SITE_URL}/terms`,
- },
];
}
diff --git a/site/src/app/terms/layout.tsx b/site/src/app/terms/layout.tsx
index fc877421..c9c52b96 100644
--- a/site/src/app/terms/layout.tsx
+++ b/site/src/app/terms/layout.tsx
@@ -1,12 +1,14 @@
import type { Metadata } from "next";
import type { ReactNode } from "react";
+import { DONKEYCUT_CANONICAL } from "@/cut/lib/hosts";
+
export const metadata: Metadata = {
alternates: {
- canonical: "https://donkeyuse.com/terms",
+ canonical: `${DONKEYCUT_CANONICAL}/terms`,
},
- description: "Read the Donkey terms of use.",
- title: "Terms of Use | Donkey",
+ description: "Read the Donkey Cut terms of use.",
+ title: "Terms of Use | Donkey Cut",
};
type Props = {