fix: socialImage code doesnt properly use publicURL

This commit is contained in:
2022-11-24 21:56:35 +01:00
parent 6f0fb545df
commit 561faa3a45
3 changed files with 9 additions and 5 deletions

View File

@@ -25,7 +25,7 @@ const PageTemplate: React.FC<Props> = ({ data }: Props) => {
<Layout
title={`${title} - ${siteTitle}`}
description={metaDescription}
socialImage={socialImage}
socialImage={socialImage?.publicURL}
>
<Sidebar />
<Page title={title}>
@@ -44,7 +44,9 @@ export const query = graphql`
title
date
description
socialImage
socialImage {
publicURL
}
}
}
}