Skip to content

Commit 72ff6b9

Browse files
committed
docs(theme): 分离博客文章
1 parent 4b67ced commit 72ff6b9

File tree

6 files changed

+24
-3
lines changed

6 files changed

+24
-3
lines changed

docs/.vuepress/navbar/en.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,9 @@ export const en = navbar([
66
text: 'Home',
77
icon: 'home',
88
link: '/en/',
9-
activeMatch: '^/en/$|^/en/posts/',
9+
// activeMatch: '^/en/$|^/en/posts/',
1010
},
11+
{ text: 'Blog', icon: 'blog', link: '/en/posts/' },
1112
{
1213
text: 'Notes',
1314
icon: 'note',

docs/.vuepress/navbar/zh.ts

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,13 @@ import { navbar } from 'vuepress-theme-hope'
22

33
export const zh = navbar([
44
// '/',
5-
{ text: '主页', icon: 'home', link: '/', activeMatch: '^/$|^/posts/' },
5+
{
6+
text: '主页',
7+
icon: 'home',
8+
link: '/',
9+
// activeMatch: '^/$|^/posts/'
10+
},
11+
{ text: '博客', icon: 'blog', link: '/posts/' },
612
{
713
text: '笔记',
814
icon: 'note',

docs/.vuepress/theme.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -82,7 +82,7 @@ export const themeOptions: ThemeOptions = {
8282
plugins: {
8383
// blog: true,
8484
blog: {
85-
article: '/posts/',
85+
// article: '/posts/',
8686
excerpt: true,
8787
},
8888

docs/en/posts/README.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
---
2+
title: Posts
3+
layout: AutoArticleListLayout
4+
index: false
5+
article: false
6+
---

docs/posts/README.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
---
2+
title: 博客
3+
layout: AutoArticleListLayout
4+
index: false
5+
article: false
6+
---

docs/posts/docker/deploy-waline.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,8 @@ tag:
1414

1515
本次使用 Docker 独立部署,以便方便内网使用。
1616

17+
<!-- more -->
18+
1719
## 部署脚本
1820

1921
```yml

0 commit comments

Comments
 (0)