mirror of
https://github.com/pengzhanbo/vuepress-theme-plume.git
synced 2026-04-23 10:58:13 +08:00
parent
c476c2059b
commit
89cb6a585a
@ -11,7 +11,7 @@ interface AssetInfo {
|
||||
}
|
||||
|
||||
function getFontAwesomeCDNLink(type: string): string {
|
||||
return `https://cdn.jsdelivr.net/npm/@fortawesome/fontawesome-free@6/js/${type}.min.js`
|
||||
return `https://cdn.jsdelivr.net/npm/@fortawesome/fontawesome-free/js/${type}.min.js`
|
||||
}
|
||||
|
||||
export function prepareIcon(
|
||||
@ -38,7 +38,7 @@ export function prepareIcon(
|
||||
if (asset === 'fontawesome-with-brands') {
|
||||
return normalizeAsset(getFontAwesomeCDNLink('brands'), 'fontawesome')
|
||||
}
|
||||
return null
|
||||
return normalizeAsset(asset, 'fontawesome')
|
||||
}).flat().filter(notNullish))
|
||||
}
|
||||
let hasStyle = false
|
||||
|
||||
@ -56,6 +56,8 @@ const extraClasses = computed(() => {
|
||||
<style>
|
||||
.vp-icon.fontawesome {
|
||||
display: inline-block;
|
||||
width: initial;
|
||||
height: initial;
|
||||
line-height: inherit;
|
||||
vertical-align: middle;
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user