新增:利用 vitepress 新特性 doc-footer-beofore 插槽来添加文末版权声明
This commit is contained in:
@@ -42,22 +42,27 @@ export const themeConfig: DefaultTheme.Config = {
|
||||
}
|
||||
],
|
||||
|
||||
// 自定义扩展: 页脚配置
|
||||
footerConfig: {
|
||||
showFooter: true, // 是否显示页脚
|
||||
icpRecordCode: '津ICP备2022005864号-2', // ICP备案号
|
||||
publicSecurityRecordCode: '津公网安备12011202000677号', // 联网备案号
|
||||
copyright: `Copyright © 2019-${new Date().getFullYear()} Charles7c` // 版权信息
|
||||
},
|
||||
// 自定义扩展: 文章元数据配置
|
||||
articleMetadataConfig: {
|
||||
author: '查尔斯', // 文章全局默认作者名称
|
||||
authorLink: '/about/me', // 点击作者名时默认跳转的链接
|
||||
showPv: false // 是否显示文章阅读数, 需配置好相应后端API接口
|
||||
},
|
||||
// 自定义扩展: 文章版权配置
|
||||
copyrightConfig: {
|
||||
license: '署名-相同方式共享 4.0 国际 (CC BY-SA 4.0)',
|
||||
licenseLink: 'http://creativecommons.org/licenses/by-sa/4.0/'
|
||||
},
|
||||
// 自定义扩展: 评论配置
|
||||
commentConfig: {
|
||||
type: 'gitalk',
|
||||
showComment: true // 是否显示评论
|
||||
},
|
||||
// 自定义扩展: 页脚配置
|
||||
footerConfig: {
|
||||
showFooter: true, // 是否显示页脚
|
||||
icpRecordCode: '津ICP备2022005864号-2', // ICP备案号
|
||||
publicSecurityRecordCode: '津公网安备12011202000677号', // 联网备案号
|
||||
copyright: `Copyright © 2019-${new Date().getFullYear()} Charles7c` // 版权信息
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user