Skip to content

Papermark is the open-source DocSend alternative and secure data rooms with built-in analytics and custom domains.

feat: add metatags

Marc Seitz6dc62814f44b
diff --git a/app/(static)/open-source-investors/page.tsx b/app/(static)/open-source-investors/page.tsx
index c02759bb..111b5e74 100644
--- a/app/(static)/open-source-investors/page.tsx
+++ b/app/(static)/open-source-investors/page.tsx
@@ -1,8 +1,43 @@
+import { Metadata } from "next";
import Dashboard from "./ClientPage";
import { cache } from "react";
export const revalidate = 86400; // revalidate the data at most every 24 hours
+const data = {
+ description:
+ "Find your next open-source investor. Share pitchdecks with your investors using Papermark, an open-source document infrastructure.",
+ title: "Open Source Investors | Papermark",
+ url: "https://www.papermark.io",
+};
+
+export const metadata: Metadata = {
+ title: data.title,
+ description: data.description,
+ openGraph: {
+ title: data.title,
+ description: data.description,
+ url: data.url,
+ siteName: "Papermark",
+ images: [
+ {
+ url: "https://www.papermark.io/_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: ["https://www.papermark.io/_static/meta-image.png"],
+ },
+};
+
const getInvestors = cache(async () => {
const response = await fetch(
"https://api.airtable.com/v0/appAxYMTCbZ1hGTmg/tblvBs5aqTt8qkb6h?fields%5B%5D=name&fields%5B%5D=title&fields%5B%5D=company&fields%5B%5D=checkSize&fields%5B%5D=openSourceInvestments&fields%5B%5D=twitterUrl&fields%5B%5D=websiteUrl&fields%5B%5D=twitterImageUrl&filterByFormula=AND(%7Bpublished%7D%3D1%2C%7Btype%7D%3D%22Angel%22)",
diff --git a/app/(static)/oss-friends/page.tsx b/app/(static)/oss-friends/page.tsx
index 0e34baf0..7b4faf58 100644
--- a/app/(static)/oss-friends/page.tsx
+++ b/app/(static)/oss-friends/page.tsx
@@ -1,6 +1,41 @@
import { Button } from "@/components/ui/button";
+import { Metadata } from "next";
import Image from "next/image";
+const data = {
+ description:
+ "Meet our fellow open source projects. Papermark is an open-source document infrastructure for sharing and collaboration.",
+ title: "Open Source Friends | Papermark",
+ url: "https://www.papermark.io",
+};
+
+export const metadata: Metadata = {
+ title: data.title,
+ description: data.description,
+ openGraph: {
+ title: data.title,
+ description: data.description,
+ url: data.url,
+ siteName: "Papermark",
+ images: [
+ {
+ url: "https://www.papermark.io/_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: ["https://www.papermark.io/_static/meta-image.png"],
+ },
+};
+
const friends = [
{
id: 1,