diff --git a/docs/.vuepress/config.ts b/docs/.vuepress/config.ts index 99834511..6de923a1 100644 --- a/docs/.vuepress/config.ts +++ b/docs/.vuepress/config.ts @@ -26,16 +26,6 @@ export default defineUserConfig({ description: 'The Theme for Vuepress 2.0', }, social: [{ icon: 'github', link: 'https://github.com/pengzhanbo' }], - // { - // email: 'volodymyr@foxmail.com', - // github: 'pengzhanbo', - // QQ: '942450674', - // weiBo: 'https://weibo.com', - // zhiHu: 'https://zhihu.com', - // facebook: 'https://baidu.com', - // twitter: 'https://baidu.com', - // linkedin: 'https://baidu.com', - // }, notes, navbar: [ { text: 'Blog', link: '/blog/', activeMatch: '/blog/' }, @@ -58,7 +48,6 @@ export default defineUserConfig({ ], footer: { copyright: 'Copyright © 2022-present pengzhanbo', - message: '', }, themePlugins: { search: { @@ -68,6 +57,17 @@ export default defineUserConfig({ }, }, }, + comment: { + provider: 'Giscus', + comment: true, + repo: 'pengzhanbo/pengzhanbo-blog-vuepress', + repoId: 'MDEwOlJlcG9zaXRvcnkxNDgwMzY4MDc=', + category: 'Announcements', + categoryId: 'DIC_kwDOCNLcx84COcVd', + mapping: 'pathname', + reactionsEnabled: true, + inputPosition: 'top', + }, }, }), }) diff --git a/packages/theme/src/client/components/Nav/NavBarTitle.vue b/packages/theme/src/client/components/Nav/NavBarTitle.vue index b1025613..7c3835bf 100644 --- a/packages/theme/src/client/components/Nav/NavBarTitle.vue +++ b/packages/theme/src/client/components/Nav/NavBarTitle.vue @@ -16,7 +16,7 @@ const { hasSidebar } = useSidebar()