Skip to content

Commit

Permalink
feat: v1.11.0 - 添加新配置项extendFrontmatter,用于扩展自动生成frontmatter
Browse files Browse the repository at this point in the history
  • Loading branch information
xugaoyi committed Apr 12, 2022
1 parent 6fed911 commit 369cb90
Show file tree
Hide file tree
Showing 53 changed files with 252 additions and 106 deletions.
23 changes: 7 additions & 16 deletions docs/.vuepress/config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,8 @@ import baiduCode from './config/baiduCode' // 百度统计hm码
import htmlModules from './config/htmlModules' // 自定义插入的html块

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

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

// 扩展自动生成frontmatter。 (不会覆盖已有的数据,仅在相应属性不存在时才会自动添加)
// 扩展自动生成frontmatter。(当md文件的frontmatter不存在相应的字段时将自动添加。不会覆盖已有的数据。)
extendFrontmatter: {
test1: false,
test2: 1,
test3: '字符串',
test4: [
1, 2, 3
],
test5: {
prop: 'abc',
prop2: [{
child: true,
}]
},
test6: 1.9
author: {
name: 'xugaoyi',
link: 'https://github.com/xugaoyi'
}
},

// 自定义hmtl(广告)模块
Expand Down
3 changes: 3 additions & 0 deletions docs/00.目录页/01.前端.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,5 +12,8 @@ sidebar: false
article: false
comment: false
editLink: false
author:
name: xugaoyi
link: https://github.com/xugaoyi
---

7 changes: 5 additions & 2 deletions docs/00.目录页/02.页面.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
---
pageComponent:
pageComponent:
name: Catalogue
data:
data:
key: 02.页面
imgUrl: /img/ui.png
description: html(5)/css(3),前端页面相关技术
Expand All @@ -12,4 +12,7 @@ sidebar: false
article: false
comment: false
editLink: false
author:
name: xugaoyi
link: https://github.com/xugaoyi
---
3 changes: 3 additions & 0 deletions docs/00.目录页/03.技术.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,4 +12,7 @@ sidebar: false
article: false
comment: false
editLink: false
author:
name: xugaoyi
link: https://github.com/xugaoyi
---
3 changes: 3 additions & 0 deletions docs/00.目录页/04.更多.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,4 +12,7 @@ sidebar: false
article: false
comment: false
editLink: false
author:
name: xugaoyi
link: https://github.com/xugaoyi
---
Original file line number Diff line number Diff line change
Expand Up @@ -2,12 +2,15 @@
title: 四级文件(测试)
date: 2020-12-11 11:15:53
permalink: /pages/8481d1/
categories:
categories:
- 前端
- JavaScript文章
- 三级目录
tags:
-
tags:
- null
author:
name: xugaoyi
link: https://github.com/xugaoyi
---

## 测试文件
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,9 @@ categories:
tags:
- 笔记
- 红宝书
author:
name: xugaoyi
link: https://github.com/xugaoyi
---
# 《JavaScript高级程序设计》笔记

Expand Down
7 changes: 5 additions & 2 deletions docs/01.前端/40.学习笔记/35.TypeScript笔记.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,11 +2,14 @@
title: TypeScript笔记
date: 2020-10-08 13:02:48
permalink: /pages/51afd6/
categories:
categories:
- 前端
- 学习笔记
tags:
tags:
- TypeScript
author:
name: xugaoyi
link: https://github.com/xugaoyi
---
# TypeScript 学习笔记

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,11 +2,14 @@
title: JS设计模式总结笔记
date: 2021-02-27 20:01:18
permalink: /pages/4643cd/
categories:
categories:
- 前端
- 学习笔记
tags:
tags:
- 设计模式
author:
name: xugaoyi
link: https://github.com/xugaoyi
---
# JS设计模式总结笔记

Expand Down
9 changes: 6 additions & 3 deletions docs/02.页面/20.CSS/00.CSS教程和技巧收藏.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,11 +2,14 @@
title: CSS教程和技巧收藏
date: 2020-08-11 17:13:52
permalink: /pages/c8f128/
categories:
categories:
- 页面
- CSS
tags:
-
tags:
- null
author:
name: xugaoyi
link: https://github.com/xugaoyi
---

## Flex 布局教程:语法篇
Expand Down
7 changes: 5 additions & 2 deletions docs/04.更多/10.实用技巧/01.2分钟规则.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,12 +2,15 @@
title: 2分钟规则
date: 2020-11-09 11:05:29
permalink: /pages/baaa02/
categories:
categories:
- 更多
- 实用技巧
tags:
tags:
- 实用技巧
- 文摘
author:
name: xugaoyi
link: https://github.com/xugaoyi
---

每当你发现很难开始执行某项任务时,可以试试将其缩减成2分钟的版本。
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,13 +4,16 @@ date: 2021-11-25 14:33:51
permalink: /pages/dcebaf/
titleTag: 原创
sticky: 1
categories:
categories:
- 更多
- 实用技巧
tags:
tags:
- JavaScript
- css
- 实用技巧
author:
name: xugaoyi
link: https://github.com/xugaoyi
---
# 一行代码“黑”掉任意网站

Expand Down
3 changes: 3 additions & 0 deletions docs/04.更多/99.友情链接.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,9 @@ date: 2019-12-25 14:27:01
permalink: /friends
article: false
sidebar: false
author:
name: xugaoyi
link: https://github.com/xugaoyi
---

<!--
Expand Down
3 changes: 3 additions & 0 deletions docs/05.关于/01.关于.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,9 @@ date: 2019-12-25 14:27:01
permalink: /about
sidebar: false
article: false
author:
name: xugaoyi
link: https://github.com/xugaoyi
---

## 📚Blog
Expand Down
3 changes: 3 additions & 0 deletions docs/06.收藏夹/01.网站.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,9 @@ title: 网站
permalink: /pages/beb6c0bd8a66cea6
date: 2020-04-19 11:33:04
article: false
author:
name: xugaoyi
link: https://github.com/xugaoyi
---
# 个人收藏夹

Expand Down
3 changes: 3 additions & 0 deletions docs/06.收藏夹/02.常用的前端轮子.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,9 @@ title: 常用的前端轮子
date: 2021-10-09 19:42:02
permalink: /pages/47cf96/
article: false
author:
name: xugaoyi
link: https://github.com/xugaoyi
---

## React UI 组件库
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,10 +4,13 @@ date: 2022-01-28 14:59:51
permalink: /pages/829589/
titleTag: 原创
sidebar: auto
categories:
categories:
- 随笔
tags:
-
tags:
- null
author:
name: xugaoyi
link: https://github.com/xugaoyi
---


Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,13 @@
title: 常用Git命令清单
date: 2020-11-18 17:43:57
permalink: /pages/8292d8/
categories:
categories:
- 《Git》学习笔记
tags:
tags:
- Git
author:
name: xugaoyi
link: https://github.com/xugaoyi
---
# 常用Git命令清单

Expand Down
7 changes: 5 additions & 2 deletions docs/《Git》学习笔记/10.手册/03.Git变基合并.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,13 @@
title: Git变基合并
date: 2020-11-18 17:43:57
permalink: /pages/c10281/
categories:
categories:
- 《Git》学习笔记
tags:
tags:
- Git
author:
name: xugaoyi
link: https://github.com/xugaoyi
---
# rebase分支合并

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,12 @@
title: Git命令思维导图
date: 2020-11-18 17:46:22
permalink: /pages/4cbc21/
categories:
categories:
- 《Git》学习笔记
tags:
tags:
- Git
author:
name: xugaoyi
link: https://github.com/xugaoyi
---
![Git命令思维导图](/img/git.png)
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,13 @@
title: Git基础与命令
date: 2020-11-18 17:43:57
permalink: /pages/635088/
categories:
categories:
- 《Git》学习笔记
tags:
tags:
- Git
author:
name: xugaoyi
link: https://github.com/xugaoyi
---
# Git基础与命令

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,13 @@
title: Git工具-重写历史
date: 2020-11-18 17:43:57
permalink: /pages/1832fe/
categories:
categories:
- 《Git》学习笔记
tags:
tags:
- Git
author:
name: xugaoyi
link: https://github.com/xugaoyi
---
# Git 工具 - 重写历史

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,13 @@
title: Git工具-重置揭密
date: 2020-11-18 17:43:57
permalink: /pages/d9e9c6/
categories:
categories:
- 《Git》学习笔记
tags:
tags:
- Git
author:
name: xugaoyi
link: https://github.com/xugaoyi
---
# Git 工具 - 重置揭密

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,13 @@
title: Git分支-分支原理
date: 2020-11-18 17:43:57
permalink: /pages/4bef1a/
categories:
categories:
- 《Git》学习笔记
tags:
tags:
- Git
author:
name: xugaoyi
link: https://github.com/xugaoyi
---
# Git分支-分支原理

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,13 @@
title: Git分支的新建与合并-分支操作
date: 2020-11-18 17:43:57
permalink: /pages/ea5a8c/
categories:
categories:
- 《Git》学习笔记
tags:
tags:
- Git
author:
name: xugaoyi
link: https://github.com/xugaoyi
---
# Git分支的新建与合并-分支操作

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,13 @@
title: Git分支管理-查看分支
date: 2020-11-18 17:43:57
permalink: /pages/a399b3/
categories:
categories:
- 《Git》学习笔记
tags:
tags:
- Git
author:
name: xugaoyi
link: https://github.com/xugaoyi
---
# Git分支管理-查看分支

Expand Down

1 comment on commit 369cb90

@vercel
Copy link

@vercel vercel bot commented on 369cb90 Apr 12, 2022

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.