Skip to content

Commit

Permalink
og_image
Browse files Browse the repository at this point in the history
  • Loading branch information
satelllte committed Oct 8, 2023
1 parent 9afecb0 commit eb3646c
Show file tree
Hide file tree
Showing 2 changed files with 25 additions and 2 deletions.
Binary file added apps/docs/public/og_image.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
27 changes: 25 additions & 2 deletions apps/docs/src/app/layout.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,32 @@ import {Inter} from 'next/font/google';
// eslint-disable-next-line new-cap
const inter = Inter({subsets: ['latin']});

const title = 'React Knob Headless';
const description = 'Unstyled & accessible knob primitive for React';
const images = [
{
url: '/og_image.png',
alt: description,
width: 1200,
height: 630,
},
];

export const metadata: Metadata = {
title: 'React Knob Headless',
description: 'Unstyled & accessible knob primitive for React',
title,
description,
openGraph: {
title,
description,
siteName: title,
images,
},
twitter: {
card: 'summary_large_image',
title,
description,
images,
},
};

export default function RootLayout({
Expand Down

0 comments on commit eb3646c

Please sign in to comment.