Skip to content

Open source CapCut alternative.

TypeScript

feat(site): brand titles as Donkey Cut Video Editor

David Le4c16feb02df2
diff --git a/site/src/app/cut/blog/[slug]/page.tsx b/site/src/app/cut/blog/[slug]/page.tsx
index f07cb774..0feeb650 100644
--- a/site/src/app/cut/blog/[slug]/page.tsx
+++ b/site/src/app/cut/blog/[slug]/page.tsx
@@ -26,7 +26,7 @@ export async function generateMetadata({ params }: Params): Promise<Metadata> {
const { slug } = await params;
const post = await getPost(slug);
if (!post) return {};
- const title = `${post.seoTitle || post.title} | Donkey Cut`;
+ const title = `${post.seoTitle || post.title} | Donkey Cut Video Editor`;
const description = post.summary || post.excerpt;
const canonical = post.canonicalUrl || `${DONKEYCUT_CANONICAL}${blogPath(slug)}`;
const image = post.headerUrl ?? post.thumbnailUrl;
diff --git a/site/src/app/cut/blog/_components/BlogIndex.tsx b/site/src/app/cut/blog/_components/BlogIndex.tsx
index 3acf45b6..2808eee4 100644
--- a/site/src/app/cut/blog/_components/BlogIndex.tsx
+++ b/site/src/app/cut/blog/_components/BlogIndex.tsx
@@ -5,7 +5,7 @@ import { BlogPagination } from "@/app/cut/blog/_components/BlogPagination";
import { BLOG_PAGE_SIZE, blogPageCount } from "@/lib/blog/keys";
import { listPublishedPosts } from "@/lib/blog/read";
-export const BLOG_INDEX_TITLE = "Blog | Donkey Cut";
+export const BLOG_INDEX_TITLE = "Blog | Donkey Cut Video Editor";
export const BLOG_INDEX_DESCRIPTION =
"Notes from building Donkey Cut: video editing techniques, how the editor works, and what changed.";
diff --git a/site/src/app/cut/layout.tsx b/site/src/app/cut/layout.tsx
index 8947d504..cb6842bc 100644
--- a/site/src/app/cut/layout.tsx
+++ b/site/src/app/cut/layout.tsx
@@ -2,7 +2,7 @@ import type { Metadata } from "next";
import type { ReactNode } from "react";
export const metadata: Metadata = {
- title: "Donkey Cut",
+ title: "Donkey Cut Video Editor",
description: "A video editor that does all its work on your Mac.",
};
diff --git a/site/src/app/cut/page.tsx b/site/src/app/cut/page.tsx
index 035b2ba7..feb2cc46 100644
--- a/site/src/app/cut/page.tsx
+++ b/site/src/app/cut/page.tsx
@@ -4,14 +4,14 @@ import { CutLanding } from "@/app/cut/_components/landing/CutLanding";
import { DONKEYCUT_CANONICAL } from "@/cut/lib/hosts";
export const metadata: Metadata = {
- title: "Donkey Cut — Free, Open Source Video Editor, CapCut Alternative",
+ title: "Donkey Cut Video Editor — Free, Open Source CapCut Alternative",
description:
"A free, open source CapCut alternative. Edit with Chat, generate video, images, voiceovers and music, and keep your projects local.",
alternates: {
canonical: `${DONKEYCUT_CANONICAL}/`,
},
openGraph: {
- title: "Donkey Cut — Free, Open Source Video Editor, CapCut Alternative",
+ title: "Donkey Cut Video Editor — Free, Open Source CapCut Alternative",
description:
"A free, open source CapCut alternative. Edit with Chat, generate video, images, voiceovers and music, and keep your projects local.",
url: `${DONKEYCUT_CANONICAL}/`,
@@ -21,7 +21,7 @@ export const metadata: Metadata = {
},
twitter: {
card: "summary_large_image",
- title: "Donkey Cut — Free, Open Source Video Editor, CapCut Alternative",
+ title: "Donkey Cut Video Editor — Free, Open Source CapCut Alternative",
description:
"A free, open source CapCut alternative. Edit with Chat, generate video, images, voiceovers and music, and keep your projects local.",
images: ["/cut/landing/og.png"],
@@ -34,8 +34,24 @@ export const metadata: Metadata = {
// read added later from quietly turning a link click into a wait.
export const instant = true;
+// The WebSite record Google reads for the site name above a result. The
+// alternate name ties brand searches to the editor; "donkey cut" alone ranks
+// cut-out crafts and template sites.
+const WEBSITE_LD = {
+ "@context": "https://schema.org",
+ "@type": "WebSite",
+ name: "Donkey Cut",
+ alternateName: "Donkey Cut Video Editor",
+ url: `${DONKEYCUT_CANONICAL}/`,
+};
+
// The Cut marketing landing, served at "/" on every host by the proxy's
// "/…" → "/cut/…" rewrite.
export default function CutLandingPage() {
- return <CutLanding />;
+ return (
+ <>
+ <script type="application/ld+json" dangerouslySetInnerHTML={{ __html: JSON.stringify(WEBSITE_LD) }} />
+ <CutLanding />
+ </>
+ );
}
diff --git a/site/src/app/layout.tsx b/site/src/app/layout.tsx
index ec84f1e8..882e098d 100644
--- a/site/src/app/layout.tsx
+++ b/site/src/app/layout.tsx
@@ -14,7 +14,7 @@ export const metadata: Metadata = {
// unset, Next reads the request's own host to resolve them, which makes the
// metadata of an otherwise static page request-dependent.
metadataBase: new URL(DONKEYCUT_CANONICAL),
- title: "Donkey Cut",
+ title: "Donkey Cut Video Editor",
description: "A video editor that does all its work on your Mac.",
// Declared here and served from public/ at these URLs. File-based icons —
// favicon.ico and apple-icon.png sitting in app/ — resolve per request, which