Skip to content

Commit 362501d

Browse files
committed
feat(navigate): add navigator for new path
1 parent 2f7e44a commit 362501d

File tree

3 files changed

+10
-4
lines changed

3 files changed

+10
-4
lines changed

src/.vuepress/navbar/zh.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ import { navbar } from "vuepress-theme-hope";
33
export const zhNavbar = navbar([
44
"/",
55
{
6-
text: "博文",
6+
text: "编程技术",
77
icon: "edit",
88
prefix: "/posts/",
99
children: [
@@ -51,7 +51,7 @@ export const zhNavbar = navbar([
5151
{
5252
text: "课程笔记",
5353
icon: "note",
54-
prefix: "/posts/课程笔记",
54+
prefix: "/notes",
5555
children: [
5656
{
5757
text: "编译原理",

src/.vuepress/sidebar/zh.ts

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,10 +4,16 @@ export const zhSidebar = sidebar({
44
"/": [
55
"",
66
{
7-
text: "文章",
7+
text: "编程技术",
88
icon: "note",
99
prefix: "posts/",
1010
children: "structure",
11+
},
12+
{
13+
text: "课程笔记",
14+
icon: "note",
15+
prefix: "notes/",
16+
children: "structure",
1117
},
1218
"intro",
1319
],

src/posts/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
---
2-
title: 技术分享
2+
title: 编程技术
33
icon: lightbulb
44
index: false
55
---

0 commit comments

Comments
 (0)