fix: add metadata to the newsletter page

This commit is contained in:
Dorian Niemiec 2024-09-07 12:19:23 +02:00
parent 4c962e3968
commit 8e9deea0bf

View file

@ -1,5 +1,36 @@
import Newsletter from "@/components/shared/Newsletter"; import Newsletter from "@/components/shared/Newsletter";
import React from "react"; import React from "react";
import { Metadata } from "next";
export const metadata: Metadata = {
title: "Newsletter - SVR.JS",
description:
"Subscribe to our newsletter for updates. We promise no spam emails will be sent.",
openGraph: {
title: "Newsletter - SVR.JS",
description:
"Subscribe to our newsletter for updates. We promise no spam emails will be sent.",
url: "https://svrjs.org/newsletter",
type: "website",
images: [
{
url: "https://svrjs.vercel.app/metadata/svrjs-cover.png",
width: 800,
height: 600,
alt: "Newsletter - SVR.JS"
}
]
},
twitter: {
card: "summary_large_image",
site: "@SVR_JS",
title: "Newsletter - SVR.JS",
description:
"Subscribe to our newsletter for updates. We promise no spam emails will be sent.",
images: ["https://svrjs.vercel.app/metadata/svrjs-cover.png"],
creator: "@SVR_JS"
}
};
const NewsletterPage = () => { const NewsletterPage = () => {
return <Newsletter />; return <Newsletter />;