Skip to content

Commit

Permalink
improve: add blog metainfo
Browse files Browse the repository at this point in the history
Signed-off-by: james-a-morris <[email protected]>
  • Loading branch information
james-a-morris committed Sep 18, 2024
1 parent a8b1ff1 commit 904d6d5
Showing 1 changed file with 28 additions and 0 deletions.
28 changes: 28 additions & 0 deletions src/app/(routes)/blog/page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,8 @@ import {
} from "@/app/_lib/contentful";
import { Posts } from "./_components/posts";
import { createCacheKey } from "@/app/_lib/cache";
import { Metadata } from "next";
import { SITE_BASE_URL } from "@/app/_constants/links";

export type SearchParams = Record<string, string | undefined>;

Expand Down Expand Up @@ -62,3 +64,29 @@ export default async function BlogHomePage({ searchParams }: PageProps) {
</>
);
}

export async function generateMetadata(): Promise<Metadata> {
const title = "Across Blog";
const description =
"Explore the latest in cross-chain solutions with the Across blog. Dive into tutorials, updates and announcements that help you leverage our protocol for fast and secure cross-chain transactions.";

return {
metadataBase: new URL(SITE_BASE_URL),
publisher: "Across Protocol",
title,
description,
icons: {
icon: ["/favicon-32x32.png", "/favicon-16x16.png"],
},
twitter: {
card: "summary_large_image",
site: "@AcrossProtocol",
title,
},
openGraph: {
siteName: "Across Protocol",
title,
description,
},
};
}

0 comments on commit 904d6d5

Please sign in to comment.