Skip to content

Commit e355d3c

Browse files
committed
fix: 修复全部图标 使用fontawesome close #21
1 parent d430533 commit e355d3c

File tree

2 files changed

+7
-4
lines changed

2 files changed

+7
-4
lines changed

src/.vuepress/navbar.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,16 +4,16 @@ export default navbar([
44
"/",
55
{
66
text: "博文",
7-
icon: "pen-to-square",
7+
icon: "fa-solid fa-pen-to-square",
88
prefix: "/posts/",
99
children: [
1010
{
1111
text: "博文",
1212
icon: "note",
1313
prefix: "/category/",
1414
children: [
15-
{ text: "日常", icon: "book", link: "daily/" },
16-
{ text: "开发", icon: "code", link: "develop/" },
15+
{ text: "日常", icon: "fa-regular fa-book", link: "daily/" },
16+
{ text: "开发", icon: "fa-regular fa-code", link: "develop/" },
1717
],
1818
},
1919
],

src/.vuepress/theme.ts

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,10 @@ export default hopeTheme({
1919

2020
iconAssets: [
2121
"fontawesome",
22-
"https://kit.fontawesome.com/b19836ac94.js",
22+
"https://js.pysio.online/js/custom-icons.js",
23+
"https://js.pysio.online/js/brands.js",
24+
"https://js.pysio.online/js/light.min.js",
25+
"https://js.pysio.online/js/regular.min.js",
2326
],
2427

2528
logo: "https://imges.pysio.online//%E9%AB%98%E6%B8%85%E9%87%8D%E5%88%B6%E5%A4%B4%E5%83%8F.svg",

0 commit comments

Comments
 (0)