diff --git a/theme/src/node/prepare/prepareHomeHeroEffects.ts b/theme/src/node/prepare/prepareHomeHeroEffects.ts index 18953389..38274809 100644 --- a/theme/src/node/prepare/prepareHomeHeroEffects.ts +++ b/theme/src/node/prepare/prepareHomeHeroEffects.ts @@ -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) {