Skip to content

Commit

Permalink
Add open graph image to seo metadata
Browse files Browse the repository at this point in the history
  • Loading branch information
nicholeuf committed Feb 18, 2024
1 parent f4b7f20 commit dc1b4c8
Showing 1 changed file with 15 additions and 1 deletion.
16 changes: 15 additions & 1 deletion src/app/layout.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@

import { Metadata } from 'next';
import { AppRouterCacheProvider } from '@mui/material-nextjs/v14-appRouter';
import { getCldOgImageUrl } from 'next-cloudinary';

import AppLayout from '@/components/AppLayout';

Expand All @@ -11,7 +12,8 @@ export const metadata: Metadata = {
// a default is required when creating a template
default: 'Nichole Frey',
},
description: 'Full-Stack Web Developer located in Central Florida',
description:
'Portfolio website for Nichole Frey, a Full-Stack Developer based in Orlando, FL',

generator: 'Next.js',
applicationName: 'Nichole Frey | Full-Stack Developer',
Expand All @@ -28,6 +30,18 @@ export const metadata: Metadata = {
authors: [{ name: 'Nichole Frey' }],
creator: 'Nichole Frey',
publisher: 'Nichole Frey',
openGraph: {
images: [
{
width: 1200,
height: 627,
url: getCldOgImageUrl({
src: 'zensite/og-image',
crop: 'scale',
}),
},
],
},
};

interface RootLayoutProps {
Expand Down

0 comments on commit dc1b4c8

Please sign in to comment.