fix: opengraph images

This commit is contained in:
Jack 2023-06-21 12:03:32 -07:00
parent f6fbd90a17
commit 5f7ff6be0a
No known key found for this signature in database
GPG Key ID: AFD9F14834097B8E
2 changed files with 10 additions and 0 deletions

View File

@ -121,6 +121,11 @@ export async function generateMetadata({ params }: { params: { id: string } }) {
publishedTime: post.publishedAt, publishedTime: post.publishedAt,
title: post.title, title: post.title,
description: post.subtitle, description: post.subtitle,
images: [
{
url: post.mainImage,
},
],
}, },
}; };
} }

View File

@ -129,6 +129,11 @@ export async function generateMetadata({
publishedDate: project.publishedAt, publishedDate: project.publishedAt,
title: project.title, title: project.title,
description: project.subtitle, description: project.subtitle,
images: [
{
url: project.mainImage,
},
],
}, },
}; };
} }