upstream #1
@ -94,7 +94,7 @@ export const BlogSEO = ({
|
|||||||
const featuredImages = imagesArr.map((img) => {
|
const featuredImages = imagesArr.map((img) => {
|
||||||
return {
|
return {
|
||||||
'@type': 'ImageObject',
|
'@type': 'ImageObject',
|
||||||
url: `${siteMetadata.siteUrl}${img}`,
|
url: img.includes('http') ? img : siteMetadata.siteUrl + img,
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
|
|
||||||
|
@ -17,7 +17,7 @@ const discussUrl = (slug) =>
|
|||||||
const postDateTemplate = { weekday: 'long', year: 'numeric', month: 'long', day: 'numeric' }
|
const postDateTemplate = { weekday: 'long', year: 'numeric', month: 'long', day: 'numeric' }
|
||||||
|
|
||||||
export default function PostLayout({ frontMatter, authorDetails, next, prev, children }) {
|
export default function PostLayout({ frontMatter, authorDetails, next, prev, children }) {
|
||||||
const { slug, fileName, date, title, tags } = frontMatter
|
const { slug, fileName, date, title, images, tags } = frontMatter
|
||||||
|
|
||||||
return (
|
return (
|
||||||
<SectionContainer>
|
<SectionContainer>
|
||||||
|
Loading…
x
Reference in New Issue
Block a user