mirror of
https://github.com/d0zingcat/NotionNext.git
synced 2026-05-30 23:16:52 +00:00
build
This commit is contained in:
@@ -2,11 +2,12 @@ import BLOG from '@/blog.config'
|
|||||||
import { getPostBlocks } from '@/lib/notion'
|
import { getPostBlocks } from '@/lib/notion'
|
||||||
import { getGlobalNotionData } from '@/lib/notion/getNotionData'
|
import { getGlobalNotionData } from '@/lib/notion/getNotionData'
|
||||||
import { useGlobal } from '@/lib/global'
|
import { useGlobal } from '@/lib/global'
|
||||||
|
import Custom404 from '../404'
|
||||||
|
|
||||||
const Page = (props) => {
|
const Page = (props) => {
|
||||||
const { ThemeComponents } = useGlobal()
|
const { ThemeComponents } = useGlobal()
|
||||||
if (!props?.meta) {
|
if (!props?.meta) {
|
||||||
return <ThemeComponents.Custom404 {...props} />
|
return <Custom404 {...props} />
|
||||||
}
|
}
|
||||||
return <ThemeComponents.LayoutPage {...props} />
|
return <ThemeComponents.LayoutPage {...props} />
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user