Skip to content

Commit 369cb90

Browse files
committed
feat: v1.11.0 - 添加新配置项extendFrontmatter,用于扩展自动生成frontmatter
1 parent 6fed911 commit 369cb90

File tree

53 files changed

+252
-106
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

53 files changed

+252
-106
lines changed

docs/.vuepress/config.ts

Lines changed: 7 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -9,8 +9,8 @@ import baiduCode from './config/baiduCode' // 百度统计hm码
99
import htmlModules from './config/htmlModules' // 自定义插入的html块
1010

1111
export default defineConfig4CustomTheme<VdoingThemeConfig>({
12-
// theme: 'vdoing', // 使用npm主题包
13-
theme: resolve(__dirname, '../../vdoing'), // 使用本地主题包
12+
theme: 'vdoing', // 使用npm主题包
13+
// theme: resolve(__dirname, '../../vdoing'), // 使用本地主题包
1414

1515
locales: {
1616
'/': {
@@ -196,21 +196,12 @@ export default defineConfig4CustomTheme<VdoingThemeConfig>({
196196
'Evan Xu | <a href="https://github.com/xugaoyi/vuepress-theme-vdoing/blob/master/LICENSE" target="_blank">MIT License</a>', // 博客版权信息,支持a标签或换行标签</br>
197197
},
198198

199-
// 扩展自动生成frontmatter。 (不会覆盖已有的数据,仅在相应属性不存在时才会自动添加)
199+
// 扩展自动生成frontmatter。(当md文件的frontmatter不存在相应的字段时将自动添加。不会覆盖已有的数据。)
200200
extendFrontmatter: {
201-
test1: false,
202-
test2: 1,
203-
test3: '字符串',
204-
test4: [
205-
1, 2, 3
206-
],
207-
test5: {
208-
prop: 'abc',
209-
prop2: [{
210-
child: true,
211-
}]
212-
},
213-
test6: 1.9
201+
author: {
202+
name: 'xugaoyi',
203+
link: 'https://github.com/xugaoyi'
204+
}
214205
},
215206

216207
// 自定义hmtl(广告)模块

docs/00.目录页/01.前端.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,5 +12,8 @@ sidebar: false
1212
article: false
1313
comment: false
1414
editLink: false
15+
author:
16+
name: xugaoyi
17+
link: https://github.com/xugaoyi
1518
---
1619

docs/00.目录页/02.页面.md

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
---
2-
pageComponent:
2+
pageComponent:
33
name: Catalogue
4-
data:
4+
data:
55
key: 02.页面
66
imgUrl: /img/ui.png
77
description: html(5)/css(3),前端页面相关技术
@@ -12,4 +12,7 @@ sidebar: false
1212
article: false
1313
comment: false
1414
editLink: false
15+
author:
16+
name: xugaoyi
17+
link: https://github.com/xugaoyi
1518
---

docs/00.目录页/03.技术.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,4 +12,7 @@ sidebar: false
1212
article: false
1313
comment: false
1414
editLink: false
15+
author:
16+
name: xugaoyi
17+
link: https://github.com/xugaoyi
1518
---

docs/00.目录页/04.更多.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,4 +12,7 @@ sidebar: false
1212
article: false
1313
comment: false
1414
editLink: false
15+
author:
16+
name: xugaoyi
17+
link: https://github.com/xugaoyi
1518
---

docs/01.前端/25.JavaScript文章/1110.三级目录/00.四级文件.md

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,12 +2,15 @@
22
title: 四级文件(测试)
33
date: 2020-12-11 11:15:53
44
permalink: /pages/8481d1/
5-
categories:
5+
categories:
66
- 前端
77
- JavaScript文章
88
- 三级目录
9-
tags:
10-
-
9+
tags:
10+
- null
11+
author:
12+
name: xugaoyi
13+
link: https://github.com/xugaoyi
1114
---
1215

1316
## 测试文件

docs/01.前端/40.学习笔记/05.《JavaScript高级程序设计》笔记.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,9 @@ categories:
77
tags:
88
- 笔记
99
- 红宝书
10+
author:
11+
name: xugaoyi
12+
link: https://github.com/xugaoyi
1013
---
1114
# 《JavaScript高级程序设计》笔记
1215

docs/01.前端/40.学习笔记/35.TypeScript笔记.md

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,11 +2,14 @@
22
title: TypeScript笔记
33
date: 2020-10-08 13:02:48
44
permalink: /pages/51afd6/
5-
categories:
5+
categories:
66
- 前端
77
- 学习笔记
8-
tags:
8+
tags:
99
- TypeScript
10+
author:
11+
name: xugaoyi
12+
link: https://github.com/xugaoyi
1013
---
1114
# TypeScript 学习笔记
1215

docs/01.前端/40.学习笔记/50.JS设计模式总结笔记.md

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,11 +2,14 @@
22
title: JS设计模式总结笔记
33
date: 2021-02-27 20:01:18
44
permalink: /pages/4643cd/
5-
categories:
5+
categories:
66
- 前端
77
- 学习笔记
8-
tags:
8+
tags:
99
- 设计模式
10+
author:
11+
name: xugaoyi
12+
link: https://github.com/xugaoyi
1013
---
1114
# JS设计模式总结笔记
1215

docs/02.页面/20.CSS/00.CSS教程和技巧收藏.md

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,11 +2,14 @@
22
title: CSS教程和技巧收藏
33
date: 2020-08-11 17:13:52
44
permalink: /pages/c8f128/
5-
categories:
5+
categories:
66
- 页面
77
- CSS
8-
tags:
9-
-
8+
tags:
9+
- null
10+
author:
11+
name: xugaoyi
12+
link: https://github.com/xugaoyi
1013
---
1114

1215
## Flex 布局教程:语法篇

0 commit comments

Comments
 (0)