升级:将 VitePress 版本升级为 v1.0.0-alpha.27(删除自定义 Badge 组件更换为官方全局组件,调整 cleanUrls 配置)

This commit is contained in:
2022-11-04 15:01:48 +08:00
parent 3e276eae12
commit 221baae8c7
27 changed files with 108 additions and 172 deletions

View File

@@ -33,8 +33,8 @@ export const nav: DefaultTheme.Config['nav'] = [
{
text: '关于',
items: [
{ text: '关于知识库', link: '/about/index', activeMatch: '/about/index.html' },
{ text: '关于我', link: '/about/me', activeMatch: '/about/me.html' }
{ text: '关于知识库', link: '/about/index', activeMatch: '/about/index' },
{ text: '关于我', link: '/about/me', activeMatch: '/about/me' }
],
activeMatch: '/about/' // // 当前页面处于匹配路径下时, 对应导航菜单将突出显示
}

View File

@@ -17,7 +17,7 @@ export const themeConfig: DefaultTheme.Config = {
},
// 编辑链接配置
editLink: {
pattern: 'https://github.com/Charles7c/charles7c.github.io/edit/main/repos/:path',
pattern: 'https://github.com/Charles7c/charles7c.github.io/edit/main/docs/:path',
text: '不妥之处,敬请雅正'
},
// 全文搜索配置