Open source Loom alternative. Beautiful, shareable screen recordings.
Rust appcapcossloommacnextjsnextjs15open-sourceossreactrecordrustscreen-capturescreen-recorderscreenshotsolidjstauritauri-apptypescriptvite
feat(web): update root layout Open Graph metadata
Richie McIlroy3b5bd63b4f33
diff --git a/apps/web/app/(site)/home/page.tsx b/apps/web/app/(site)/home/page.tsxindex 5fec6be59..c38c236cc 100644--- a/apps/web/app/(site)/home/page.tsx+++ b/apps/web/app/(site)/home/page.tsx@@ -1,14 +1,20 @@import type { Metadata } from "next";import { HomePage } from "@/components/pages/HomePage";+import { buildMarketingMetadata } from "@/lib/og/url";export const metadata: Metadata = {+ ...buildMarketingMetadata({+ title: "Cap — Beautiful screen recordings, owned by you.",+ description:+ "Cap is the open source alternative to Loom. Lightweight, powerful, and cross-platform. Record and share in seconds.",+ ogTitle: "Beautiful screen recordings, owned by you",+ }),+ // Duplicate of the real homepage — keep it deduped and unindexed.+ alternates: { canonical: "https://cap.so/" },robots: {index: false,follow: false,},- alternates: {- canonical: "https://cap.so/",- },};export default async function Home() {diff --git a/apps/web/app/layout.tsx b/apps/web/app/layout.tsxindex f8c3bbcff..f2c9726cc 100644--- a/apps/web/app/layout.tsx+++ b/apps/web/app/layout.tsx@@ -51,7 +51,22 @@ export const metadata: Metadata = {"Cap is the open source alternative to Loom. Lightweight, powerful, and cross-platform. Record and share in seconds.",type: "website",url: "https://cap.so",- images: ["https://cap.so/og.png"],+ siteName: "Cap",+ images: [+ {+ url: "/api/og",+ width: 1200,+ height: 630,+ alt: "Cap — Beautiful screen recordings, owned by you.",+ },+ ],+ },+ twitter: {+ card: "summary_large_image",+ title: "Cap — Beautiful screen recordings, owned by you.",+ description:+ "Cap is the open source alternative to Loom. Lightweight, powerful, and cross-platform. Record and share in seconds.",+ images: ["/api/og"],},};