Skip to content

Commit

Permalink
移除了多余的页面
Browse files Browse the repository at this point in the history
  • Loading branch information
Chiichen committed Oct 11, 2023
1 parent 46b3bfb commit 367a332
Show file tree
Hide file tree
Showing 48 changed files with 179 additions and 2,998 deletions.
6 changes: 3 additions & 3 deletions src/.vuepress/config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,12 +7,12 @@ export default defineUserConfig({
locales: {
"/": {
lang: "en-US",
title: "Blog Demo",
description: "A blog demo for vuepress-theme-hope",
title: "ChiChen's Blog",
description: "A blog of a",
},
"/zh/": {
lang: "zh-CN",
title: "博客演示",
title: "ChiChen's Blog",
description: "vuepress-theme-hope 的博客演示",
},
},
Expand Down
74 changes: 34 additions & 40 deletions src/.vuepress/navbar/en.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,51 +2,45 @@ import { navbar } from "vuepress-theme-hope";

export const enNavbar = navbar([
"/",
{ text: "Demo", icon: "discover", link: "/demo/" },
{
text: "Posts",
icon: "edit",
prefix: "/posts/",
children: [
{
text: "Apple",
icon: "edit",
prefix: "apple/",
children: [
{ text: "Apple1", icon: "edit", link: "1" },
{ text: "Apple2", icon: "edit", link: "2" },
"3",
"4",
],
},
{
text: "Banana",
icon: "edit",
prefix: "banana/",
children: [
{
text: "Banana 1",
icon: "edit",
link: "1",
},
{
text: "Banana 2",
icon: "edit",
link: "2",
},
"3",
"4",
],
},
{ text: "Cherry", icon: "edit", link: "cherry" },
{ text: "Dragon Fruit", icon: "edit", link: "dragonfruit" },
"tomato",
"strawberry",
// {
// text: "Apple",
// icon: "edit",
// prefix: "apple/",
// children: [
// { text: "Apple1", icon: "edit", link: "1" },
// { text: "Apple2", icon: "edit", link: "2" },
// "3",
// "4",
// ],
// },
// {
// text: "Banana",
// icon: "edit",
// prefix: "banana/",
// children: [
// {
// text: "Banana 1",
// icon: "edit",
// link: "1",
// },
// {
// text: "Banana 2",
// icon: "edit",
// link: "2",
// },
// "3",
// "4",
// ],
// },
// { text: "Cherry", icon: "edit", link: "cherry" },
// { text: "Dragon Fruit", icon: "edit", link: "dragonfruit" },
// "tomato",
// "strawberry",
],
},
{
text: "V2 Docs",
icon: "note",
link: "https://theme-hope.vuejs.press/",
},
]);
15 changes: 3 additions & 12 deletions src/.vuepress/navbar/zh.ts
Original file line number Diff line number Diff line change
Expand Up @@ -27,22 +27,13 @@ export const zhNavbar = navbar([
children: [
{
text: "震惊,1=0!?",
icon: "edit",
icon: "page",
link: "编程杂谈/震惊,1=0!?.md",
},
{
text: "香蕉 2",
icon: "edit",
link: "2",
},
"3",
"4",

],
},
{ text: "樱桃", icon: "edit", link: "cherry" },
{ text: "火龙果", icon: "edit", link: "dragonfruit" },
"tomato",
"strawberry",

],
},
{
Expand Down
10 changes: 1 addition & 9 deletions src/.vuepress/sidebar/en.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,20 +3,12 @@ import { sidebar } from "vuepress-theme-hope";
export const enSidebar = sidebar({
"/": [
"",
{
icon: "discover",
text: "Demo",
prefix: "demo/",
link: "demo/",
children: "structure",
},
{
text: "Articles",
icon: "note",
prefix: "posts/",
children: "structure",
},
"intro",
"slides",
"intro",
],
});
8 changes: 0 additions & 8 deletions src/.vuepress/sidebar/zh.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,20 +3,12 @@ import { sidebar } from "vuepress-theme-hope";
export const zhSidebar = sidebar({
"/zh/": [
"",
{
text: "如何使用",
icon: "creative",
prefix: "demo/",
link: "demo/",
children: "structure",
},
{
text: "文章",
icon: "note",
prefix: "posts/",
children: "structure",
},
"intro",
"slides",
],
});
12 changes: 6 additions & 6 deletions src/.vuepress/theme.ts
Original file line number Diff line number Diff line change
Expand Up @@ -105,12 +105,12 @@ export default hopeTheme({
},
},

encrypt: {
config: {
"/demo/encrypt.html": ["1234"],
"/zh/demo/encrypt.html": ["1234"],
},
},
// encrypt: {
// config: {
// "/demo/encrypt.html": ["1234"],
// "/zh/demo/encrypt.html": ["1234"],
// },
// },

plugins: {
blog: true,
Expand Down
4 changes: 2 additions & 2 deletions src/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,8 @@ layout: BlogHome
icon: home
title: Blog Home
heroImage: /logo.svg
heroText: The name of your blog
tagline: You can put your slogan here
heroText: ChiChen's Blog
tagline: A true master is an eternal student
heroFullScreen: true
projects:
- icon: project
Expand Down
17 changes: 0 additions & 17 deletions src/demo/README.md

This file was deleted.

42 changes: 0 additions & 42 deletions src/demo/disable.md

This file was deleted.

15 changes: 0 additions & 15 deletions src/demo/encrypt.md

This file was deleted.

Loading

0 comments on commit 367a332

Please sign in to comment.