previewLine设置

This commit is contained in:
tangly1024
2022-01-25 17:44:49 +08:00
parent 13f53b2bad
commit ddd38a6745
10 changed files with 30 additions and 20 deletions

View File

@@ -2,7 +2,7 @@ import BLOG from '@/blog.config'
import Head from 'next/head'
const CommonHead = ({ meta }) => {
let url = BLOG.PATH.length ? `${BLOG.LINK}/${BLOG.PATH}` : BLOG.LINK
let url = BLOG?.PATH?.length ? `${BLOG.LINK}/${BLOG.PATH}` : BLOG.LINK
if (meta) {
url = `${url}/${meta.slug}`
}