fix(theme): fix auto-sidebar group icon error inherit, close #873 (#883)

This commit is contained in:
pengzhanbo 2026-04-02 22:05:54 +08:00 committed by GitHub
parent 9fe294b9dd
commit dbc6f0be0f
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -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) {