mirror of
https://github.com/d0zingcat/NotionNext.git
synced 2026-05-31 23:16:54 +00:00
动态页面展示;
This commit is contained in:
@@ -1,8 +1,8 @@
|
||||
import BLOG from '@/blog.config'
|
||||
import { getPostBlocks } from '@/lib/notion'
|
||||
import { getGlobalNotionData } from '@/lib/notion/getNotionData'
|
||||
import { LayoutSlug } from '@/themes'
|
||||
import Custom404 from '@/pages/404'
|
||||
import { useGlobal } from '@/lib/global'
|
||||
import Custom404 from '../404'
|
||||
|
||||
/**
|
||||
* 根据notion的slug访问页面
|
||||
@@ -10,10 +10,11 @@ import Custom404 from '@/pages/404'
|
||||
* @returns
|
||||
*/
|
||||
const Slug = (props) => {
|
||||
const { ThemeComponents } = useGlobal()
|
||||
if (!props.post) {
|
||||
return <Custom404 {...props} />
|
||||
}
|
||||
return <LayoutSlug {...props} showArticleInfo={true}/>
|
||||
return <ThemeComponents.LayoutSlug {...props} showArticleInfo={true}/>
|
||||
}
|
||||
|
||||
export async function getStaticPaths () {
|
||||
|
||||
Reference in New Issue
Block a user