移除404,测试编译

This commit is contained in:
tangly1024
2022-03-16 09:33:27 +08:00
parent 0c727d5fe2
commit 3c056ba096
4 changed files with 3 additions and 22 deletions

View File

@@ -2,14 +2,13 @@ import BLOG from '@/blog.config'
import { getPostBlocks } from '@/lib/notion'
import { getGlobalNotionData } from '@/lib/notion/getNotionData'
import { useGlobal } from '@/lib/global'
import Custom404 from '../404'
import * as ThemeMap from '@/themes'
const Page = (props) => {
const { theme } = useGlobal()
const ThemeComponents = ThemeMap[theme]
if (!props?.meta) {
return <Custom404 {...props} />
return <ThemeComponents.Layout404 {...props}/>
}
return <ThemeComponents.LayoutPage {...props} />
}