From dbc6f0be0fe0826770a7b33536d77759e1e89056 Mon Sep 17 00:00:00 2001 From: pengzhanbo Date: Thu, 2 Apr 2026 22:05:54 +0800 Subject: [PATCH] fix(theme): fix auto-sidebar group icon error inherit, close #873 (#883) --- theme/src/node/prepare/prepareSidebar.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/theme/src/node/prepare/prepareSidebar.ts b/theme/src/node/prepare/prepareSidebar.ts index fb844998..663e4f32 100644 --- a/theme/src/node/prepare/prepareSidebar.ts +++ b/theme/src/node/prepare/prepareSidebar.ts @@ -173,7 +173,7 @@ function getAutoDirSidebar( current.text = title } } - if (frontmatter.icon) { + if (frontmatter.icon && dir.endsWith('.md')) { current.icon = frontmatter.icon as ThemeIcon } if (parent?.items?.length) {