Skip to content

Commit

Permalink
add og meta to learn pages
Browse files Browse the repository at this point in the history
  • Loading branch information
saml33 committed Jan 30, 2024
1 parent b363ea7 commit a5c5315
Showing 1 changed file with 15 additions and 0 deletions.
15 changes: 15 additions & 0 deletions app/(pages)/learn/[slug]/page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,21 @@ export async function generateMetadata(
return {
title: learnPost?.seoTitle || learnPost.postTitle,
description: learnPost?.seoDescription || learnPost.postDescription,
openGraph: {
title: learnPost?.seoTitle || learnPost.postTitle,
description: learnPost?.seoDescription || learnPost.postDescription,
url: `https://mango.markets/blog/${learnPost.slug}`,
siteName: 'Mango Markets',
images: [
{
url: learnPost.metaImageUrl, // Must be an absolute URL
width: 800,
height: 600,
},
],
locale: 'en_US',
type: 'website',
},
}
}

Expand Down

0 comments on commit a5c5315

Please sign in to comment.