mirror of
https://github.com/UiO-Gaming/uiogaming.no.git
synced 2026-11-05 13:56:47 +01:00
add SEO social card image
This commit is contained in:
2 files changed
+3
-2
No files matched your search
@@ -61,7 +61,7 @@ const BlogPost = ({ data }) => {
|
||||
<>
|
||||
<Seo
|
||||
title={data.sanityPost.title}
|
||||
image={data.sanityPost.mainImage.asset.url}
|
||||
imageURL={data.sanityPost.mainImage.asset.url}
|
||||
description={data.sanityPost.excerpt}
|
||||
author={data.sanityPost.author.name}
|
||||
/>
|
||||
|
||||
@@ -19,6 +19,7 @@ function Seo({ description, lang, meta, imageURL, title, author }) {
|
||||
title
|
||||
description
|
||||
author
|
||||
url
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -28,7 +29,7 @@ function Seo({ description, lang, meta, imageURL, title, author }) {
|
||||
const metaAuthor = author || site.siteMetadata.author
|
||||
const metaDescription = description || site.siteMetadata.description
|
||||
const defaultTitle = site.siteMetadata?.title
|
||||
const image = imageURL || `${site.siteMetadata.siteUrl}/logo.jpg`
|
||||
const image = imageURL || `${site.siteMetadata.url}/logo.jpg`
|
||||
|
||||
return (
|
||||
<Helmet
|
||||
|
||||
Reference in new issue
Block a user