Skip to content

Commit 5793ae0

Browse files
committed
feat: 增加友链
1 parent c1177ae commit 5793ae0

File tree

4 files changed

+37
-8
lines changed

4 files changed

+37
-8
lines changed

src/.vuepress/navbar.ts

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,13 +11,22 @@ export default navbar([
1111
text: "博文",
1212
icon: "note",
1313
prefix: "/category/",
14+
link: "/posts/",
1415
children: [
1516
{ text: "日常", icon: "fa-regular fa-book", link: "daily/" },
1617
{ text: "开发", icon: "fa-regular fa-code", link: "develop/" },
1718
],
1819
},
1920
],
2021
},
22+
{
23+
text: "杂项",
24+
icon: "fa-solid fa-ellipsis fa-xl",
25+
link: "/other/",
26+
children: [
27+
{ text: "友链", icon: "fa-solid fa-link", link: "/other/friends" },
28+
],
29+
},
2130
{
2231
text: "关于",
2332
icon: "fa-regular fa-circle-info",

src/.vuepress/sidebar/index.ts

Lines changed: 20 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,18 +1,34 @@
11
import { sidebar } from "vuepress-theme-hope";
22

33
export default sidebar({
4-
"/": [
5-
"",
4+
"/posts/": [
5+
{
6+
text: "Pysio's Home",
7+
prefix: "/",
8+
link: "/posts/",
9+
},
610
{
711
text: "日常",
812
icon: "book",
9-
prefix: "posts/daily",
13+
prefix: "daily",
1014
children: "structure",
15+
collapsible: true,
1116
},
1217
{
1318
text: "开发",
1419
icon: "code",
15-
prefix: "posts/develop",
20+
prefix: "develop",
21+
children: "structure",
22+
collapsible: true,
23+
},
24+
],
25+
"/other/": [
26+
{
27+
text: "杂项",
28+
link: "/other/",
29+
},
30+
{
31+
text: "",
1632
children: "structure",
1733
},
1834
],

src/README.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -29,9 +29,9 @@ projects:
2929
# desc: 文章详细描述
3030
# link: https://你的文章链接
3131

32-
# - icon: friend
33-
# name: 伙伴名称
34-
# desc: 伙伴详细介绍
35-
# link: https://你的伙伴链接
32+
- icon: friend
33+
name: 友链
34+
desc: 朋友们的网站些
35+
link: /other/friends
3636

3737
---

src/other/friends.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
---
2+
title: 友情链接
3+
icon: fa-regular fa-link
4+
---

0 commit comments

Comments
 (0)