fix(theme): fix boundary detection error for config on home (#785)

This commit is contained in:
pengzhanbo 2025-12-12 20:39:03 +08:00 committed by GitHub
parent 2c360ac59e
commit 6383347813
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -83,7 +83,7 @@ function getEffectsByFrontmatter(app: App) {
for (const page of app.pages) {
const fm = page.frontmatter
const config = fm.config as ThemeHomeConfig[]
if (!(fm.home || fm.pageLayout === 'home') || config?.length === 0)
if (!(fm.home || fm.pageLayout === 'home') || !config?.length)
continue
for (const item of config) {