This commit is contained in:
Vixcity
2023-01-03 21:10:27 +08:00
parent 7da44bd0de
commit 271e4b76be
119 changed files with 2515 additions and 2072 deletions

View File

@@ -15,7 +15,7 @@ const NoFound = props => {
}
export async function getStaticProps () {
const props = await getGlobalNotionData({ from: '404' }) || {}
const props = (await getGlobalNotionData({ from: '404' })) || {}
return { props }
}

View File

@@ -50,7 +50,7 @@ const Slug = props => {
}
}
}, 20 * 1000)
const meta = { title: `${props?.siteInfo?.title || BLOG.TITLE} | loading`, image: siteInfo?.pageCover }
const meta = { title: `${props?.siteInfo?.title || BLOG.TITLE} | loading`, image: siteInfo?.pageCover || BLOG.HOME_BANNER_IMAGE }
return <ThemeComponents.LayoutSlug {...props} showArticleInfo={true} meta={meta} />
}