Merge pull request #478 from mlevit/master
frontmatter images can now be external
This commit is contained in:
commit
315d667c47
@ -94,7 +94,7 @@ export const BlogSEO = ({
|
||||
const featuredImages = imagesArr.map((img) => {
|
||||
return {
|
||||
'@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' }
|
||||
|
||||
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 (
|
||||
<SectionContainer>
|
||||
|
Loading…
x
Reference in New Issue
Block a user