Skip to content

Commit

Permalink
Add metadata for Open Graph
Browse files Browse the repository at this point in the history
  • Loading branch information
Kevin-Kwan committed Dec 19, 2023
1 parent fb9b752 commit b1a8d4d
Showing 1 changed file with 18 additions and 0 deletions.
18 changes: 18 additions & 0 deletions components/RootLayout.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,24 @@ import { useRouter } from 'next/router';

const inter = Inter({ subsets: ['latin'] });

export const metadata: Metadata = {
openGraph: {
title: 'example',
url: 'https://www.example.com',
description: 'example example example',
type: 'website',
images: [
{
url: 'https://www.example.com/path-to-your-image.jpg',
type: 'image/jpg',
width: 1200,
height: 630,
alt: 'Example Image',
},
],
},
};

export default function RootLayout({
children,
}: {
Expand Down

0 comments on commit b1a8d4d

Please sign in to comment.