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:
tangly1024.com
2024-02-23 11:18:46 +08:00
parent 33b63d95e0
commit 984ac99675

View File

@@ -33,13 +33,24 @@ export const getLayoutByTheme = ({ router, theme }) => {
setTimeout(() => {
checkThemeDOM()
}, 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 })
} else {
setTimeout(() => {
checkThemeDOM()
}, 100);
return ThemeComponents[getLayoutNameByPath(router.pathname, router.asPath)]
const components = ThemeComponents[getLayoutNameByPath(router.pathname, router.asPath)]
if (components) {
return components
} else {
return ThemeComponents.LayoutSlug
}
}
}