Skip to content

Commit

Permalink
add cover image to blog
Browse files Browse the repository at this point in the history
  • Loading branch information
Dujota committed Nov 23, 2024
1 parent 2c5f33e commit eb76a81
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/seo/blogStructuredData.ts
Original file line number Diff line number Diff line change
Expand Up @@ -62,8 +62,8 @@ export function createBlogIndexStructuredData(posts: Post[]) {
headline: post.title,
url: `${baseUrl}/blog/${post.slug}`,
description: post.excerpt,
...(post.coverImage?.asset?.url && {
image: post.coverImage.asset.url,
...(post.coverImage && {
image: urlForImage(post.coverImage).url(),
}),
datePublished: post.date,
...(post.author && {
Expand Down

0 comments on commit eb76a81

Please sign in to comment.