From 2e1ad231120a40fba5b38e68d7d46ba367fa85f8 Mon Sep 17 00:00:00 2001 From: pengzhanbo Date: Wed, 8 Oct 2025 02:16:00 +0800 Subject: [PATCH] fix(theme): incorrect configuration loading and page generation sequence --- theme/src/node/theme.ts | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/theme/src/node/theme.ts b/theme/src/node/theme.ts index 8a4197bf..02bb1fd6 100644 --- a/theme/src/node/theme.ts +++ b/theme/src/node/theme.ts @@ -63,12 +63,13 @@ export function plumeTheme(options: ThemeOptions = {}): Theme { plugins: setupPlugins(app, plugins), - extendsBundlerOptions: async (bundlerOptions, app) => { - extendsBundlerOptions(bundlerOptions, app) + extendsMarkdownOptions: async (_, app) => { await configLoader.waiting() await generateFileListFrontmatter(app) }, + extendsBundlerOptions, + templateBuildRenderer, extendsPage: page => extendsPageData(page as Page),