fix image meta logic

This commit is contained in:
Timothy 2021-01-18 23:47:17 +08:00
parent 18fd946172
commit 95da0d0e63

View File

@ -54,8 +54,8 @@ export const BlogSeo = ({ title, summary, date, lastmod, url, tags, images = []
images.length === 0
? [siteMetadata.socialBanner]
: typeof images === 'string'
? images
: [images]
? [images]
: images
const featuredImages = imagesArr.map((img) => {
return {