mirror of
https://github.com/pengzhanbo/vuepress-theme-plume.git
synced 2026-04-23 10:58:13 +08:00
perf(theme): improve prepare icons
This commit is contained in:
parent
6928ee4bb4
commit
5f6825a645
@ -86,7 +86,7 @@ function getIconsWithPage(page: Page): string[] {
|
||||
list.push(page.frontmatter.icon)
|
||||
}
|
||||
|
||||
return list
|
||||
return list.filter(icon => !isLinkHttp(icon) && !isLinkAbsolute(icon) && icon[0] !== '{')
|
||||
}
|
||||
|
||||
function getIconWithThemeConfig(localeOptions: PlumeThemeLocaleOptions): string[] {
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user