优化:文章元数据信息开启显示文章阅读数,需要单独提供后端 HTTPS API 服务

This commit is contained in:
2022-11-27 15:44:56 +08:00
parent 9056dfbdd5
commit feea6a3531
11 changed files with 135 additions and 6 deletions

View File

@@ -47,7 +47,7 @@ export const themeConfig: DefaultTheme.Config = {
articleMetadataConfig: {
author: '查尔斯', // 文章全局默认作者名称
authorLink: '/about/me', // 点击作者名时默认跳转的链接
showPv: false // 是否显示文章阅读数, 需配置好相应后端API接口
showPv: true // 是否显示文章阅读数, 需要在 docs/.vitepress/theme/api/config.js 及 interface.js 配置好相应 API 接口
},
// 自定义扩展: 文章版权配置
copyrightConfig: {