og:image完善

This commit is contained in:
tlyong1992
2022-05-18 14:21:13 +08:00
parent a3f2494f56
commit 0c844c4986
12 changed files with 14 additions and 7 deletions

View File

@@ -6,7 +6,7 @@ const CommonHead = ({ meta, children }) => {
let image
if (meta) {
url = `${url}/${meta.slug}`
image = meta.image || ''
image = meta.image || '/bg_image.jpg'
}
const title = meta?.title || BLOG.TITLE
const description = meta?.description || BLOG.DESCRIPTION