mirror of
https://github.com/mfts/papermark.git
synced 2025-12-20 01:03:24 +08:00
62 lines
1.4 KiB
TypeScript
62 lines
1.4 KiB
TypeScript
import { Metadata } from "next";
|
|
import { Inter } from "next/font/google";
|
|
|
|
import PlausibleProvider from "next-plausible";
|
|
|
|
import "@/styles/globals.css";
|
|
|
|
const inter = Inter({ subsets: ["latin"] });
|
|
|
|
const data = {
|
|
description:
|
|
"Papermark is an open-source document sharing infrastructure. Free alternative to Docsend with custom domain. Manage secure document sharing with real-time analytics.",
|
|
title: "Papermark | The Open Source DocSend Alternative",
|
|
url: "/",
|
|
};
|
|
|
|
export const metadata: Metadata = {
|
|
metadataBase: new URL("https://www.papermark.io"),
|
|
title: data.title,
|
|
description: data.description,
|
|
openGraph: {
|
|
title: data.title,
|
|
description: data.description,
|
|
url: data.url,
|
|
siteName: "Papermark",
|
|
images: [
|
|
{
|
|
url: "/_static/meta-image.png",
|
|
width: 800,
|
|
height: 600,
|
|
},
|
|
],
|
|
locale: "en_US",
|
|
type: "website",
|
|
},
|
|
twitter: {
|
|
card: "summary_large_image",
|
|
title: data.title,
|
|
description: data.description,
|
|
creator: "@papermarkio",
|
|
images: ["/_static/meta-image.png"],
|
|
},
|
|
};
|
|
|
|
export default function RootLayout({
|
|
children,
|
|
}: {
|
|
children: React.ReactNode;
|
|
}) {
|
|
return (
|
|
<html lang="en">
|
|
<head>
|
|
<PlausibleProvider
|
|
domain="papermark.io"
|
|
enabled={process.env.NEXT_PUBLIC_VERCEL_ENV === "production"}
|
|
/>
|
|
</head>
|
|
<body className={inter.className}>{children}</body>
|
|
</html>
|
|
);
|
|
}
|