mirror of
https://github.com/d0zingcat/NotionNext.git
synced 2026-05-25 07:26:49 +00:00
theme-starter
logo color fix starter-menu starter - image starter theme starter about 和pricing模块 Starter Testimonials starter-FAQ starter-blog,footer starter blog 区块 heo 广告微调 log gitbook 适配algolia gitbook topnav 优化Algolia搜索逻辑 支持在NotionConfig中配置字体 starter首页 signin / signup starter starter 完善
This commit is contained in:
@@ -33,13 +33,24 @@ export const getLayoutByTheme = ({ router, theme }) => {
|
|||||||
setTimeout(() => {
|
setTimeout(() => {
|
||||||
checkThemeDOM()
|
checkThemeDOM()
|
||||||
}, 500);
|
}, 500);
|
||||||
return m[getLayoutNameByPath(router.pathname, router.asPath)]
|
|
||||||
|
const components = m[getLayoutNameByPath(router.pathname, router.asPath)]
|
||||||
|
if (components) {
|
||||||
|
return components
|
||||||
|
} else {
|
||||||
|
return m.LayoutSlug
|
||||||
|
}
|
||||||
}), { ssr: true })
|
}), { ssr: true })
|
||||||
} else {
|
} else {
|
||||||
setTimeout(() => {
|
setTimeout(() => {
|
||||||
checkThemeDOM()
|
checkThemeDOM()
|
||||||
}, 100);
|
}, 100);
|
||||||
return ThemeComponents[getLayoutNameByPath(router.pathname, router.asPath)]
|
const components = ThemeComponents[getLayoutNameByPath(router.pathname, router.asPath)]
|
||||||
|
if (components) {
|
||||||
|
return components
|
||||||
|
} else {
|
||||||
|
return ThemeComponents.LayoutSlug
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user