Icon Plugin Config
Less than 1 minute
Intro
The theme provides blog feature via @vuepress/plugin-icon. For instructions, please see Icon Intro.
Options
plugins.icon.assets
Type:
IconAssetexport type BuiltInIcon = | "fontawesome-with-brands" | "fontawesome" | "iconify"; export type IconLink = | `//${string}` | `/${string}` | `http://${string}` | `https://${string}`; export type IconAsset = (BuiltInIcon | IconLink)[] | BuiltInIcon | IconLink;Details:
Icon assets to be used.
The following keywords are supported and you may use other CDN links or even your own.:
iconify: Iconifyfontawesome: Font Awesome free icons onlyfontawesome-with-brands: Font Awesome free icons and brand icons
plugins.icon.type
Type:
IconTypeexport type IconType = "fontawesome" | "iconfont" | "iconify" | "unknown";Default: Inferred from the
assetsDetails:
Type of the icon, the plugin will try to infer the type from the assets, and fallbacks to
unknown.Notably, the plugin can recognize:
- iconfont css links
- fontawesome kits
- CDN links for fontawesome and iconify
plugins.icon.prefix
Type:
stringDefault: Infer from the
assetsandtypeDetails:
Prefix for the icon component. By default, the plugin will use:
iconfont icon-for iconfont typefas fa-for fontawesome type- empty string for all other types
plugins.icon.markdown
Type:
booleanDefault:
trueDetails:
Whether to enable icon syntax (
::icon::) in markdown.
Changelog
7/9/25, 4:17 AM
View All Changelog
05fbb-ondd4a8-on