mirror of
https://github.com/mastermindzh/rickvanlieshout.com
synced 2024-12-26 14:59:14 +01:00
fix: socialImage code doesnt properly use publicURL
This commit is contained in:
parent
6f0fb545df
commit
561faa3a45
@ -25,7 +25,7 @@ const PageTemplate: React.FC<Props> = ({ data }: Props) => {
|
|||||||
<Layout
|
<Layout
|
||||||
title={`${title} - ${siteTitle}`}
|
title={`${title} - ${siteTitle}`}
|
||||||
description={metaDescription}
|
description={metaDescription}
|
||||||
socialImage={socialImage}
|
socialImage={socialImage?.publicURL}
|
||||||
>
|
>
|
||||||
<Sidebar />
|
<Sidebar />
|
||||||
<Page title={title}>
|
<Page title={title}>
|
||||||
@ -44,7 +44,9 @@ export const query = graphql`
|
|||||||
title
|
title
|
||||||
date
|
date
|
||||||
description
|
description
|
||||||
socialImage
|
socialImage {
|
||||||
|
publicURL
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -23,7 +23,7 @@ const PostTemplate: React.FC<Props> = ({ data }: Props) => {
|
|||||||
<Layout
|
<Layout
|
||||||
title={`${title} - ${siteTitle}`}
|
title={`${title} - ${siteTitle}`}
|
||||||
description={metaDescription}
|
description={metaDescription}
|
||||||
socialImage={socialImage}
|
socialImage={socialImage?.publicURL}
|
||||||
>
|
>
|
||||||
<Post post={data.markdownRemark} />
|
<Post post={data.markdownRemark} />
|
||||||
</Layout>
|
</Layout>
|
||||||
@ -47,7 +47,9 @@ export const query = graphql`
|
|||||||
description
|
description
|
||||||
tags
|
tags
|
||||||
title
|
title
|
||||||
socialImage
|
socialImage {
|
||||||
|
publicURL
|
||||||
|
}
|
||||||
disqusId
|
disqusId
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -5,7 +5,7 @@ interface Frontmatter {
|
|||||||
template: string;
|
template: string;
|
||||||
description?: string;
|
description?: string;
|
||||||
tags?: Array<string>;
|
tags?: Array<string>;
|
||||||
socialImage?: string;
|
socialImage?: { publicURL: string };
|
||||||
disqusId?: string;
|
disqusId?: string;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user