mirror of
https://github.com/d0zingcat/NotionNext.git
synced 2026-06-08 23:16:54 +00:00
部分配置siteConfig化
This commit is contained in:
@@ -1,7 +1,7 @@
|
||||
import { getGlobalData } from '@/lib/notion/getNotionData'
|
||||
import { useGlobal } from '@/lib/global'
|
||||
import { useRouter } from 'next/router'
|
||||
import { getLayoutByTheme } from '@/themes/theme'
|
||||
import { siteConfig } from '@/lib/config'
|
||||
|
||||
/**
|
||||
* 404
|
||||
@@ -9,8 +9,7 @@ import { getLayoutByTheme } from '@/themes/theme'
|
||||
* @returns
|
||||
*/
|
||||
const NoFound = props => {
|
||||
const { siteInfo } = useGlobal()
|
||||
const meta = { title: `${props?.siteInfo?.title} | 页面找不到啦`, image: siteInfo?.pageCover }
|
||||
const meta = { title: `${siteConfig('TITLE')} | 页面找不到啦`, image: siteConfig('HOME_BANNER_IMAGE') }
|
||||
|
||||
props = { ...props, meta }
|
||||
|
||||
|
||||
Reference in New Issue
Block a user