mirror of
https://github.com/d0zingcat/NotionNext.git
synced 2026-06-01 23:16:51 +00:00
动态Theme 初版
This commit is contained in:
@@ -1,9 +1,12 @@
|
||||
import BLOG from '@/blog.config'
|
||||
import { getPostBlocks } from '@/lib/notion'
|
||||
import { getGlobalNotionData } from '@/lib/notion/getNotionData'
|
||||
import { LayoutIndex, THEME_CONFIG } from '@/themes'
|
||||
import { LayoutIndex, THEME_CONFIG, ThemeMap } from '@/themes'
|
||||
import { useGlobal } from '@/lib/global'
|
||||
|
||||
const Index = (props) => {
|
||||
const { theme } = useGlobal()
|
||||
console.log('模板', ThemeMap[theme].LayoutIndex)
|
||||
return <LayoutIndex {...props}/>
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user