From d0a6e6c77bda79498751cdb79d4b34ef866fb2d9 Mon Sep 17 00:00:00 2001 From: pengzhanbo Date: Tue, 14 Feb 2023 05:03:36 +0800 Subject: [PATCH] feat(theme): update style & config --- docs/.vuepress/config.ts | 22 ++++++------- .../src/client/components/Nav/NavBarTitle.vue | 2 +- .../src/client/components/icons/IconClock.vue | 13 +++----- packages/theme/src/client/utils/shared.ts | 2 +- packages/theme/src/node/plugins.ts | 11 ++++--- packages/theme/src/node/setupPages.ts | 7 ++-- packages/theme/src/node/theme.ts | 7 ++-- packages/theme/src/shared/options/index.ts | 32 ------------------- packages/theme/src/shared/options/plugins.ts | 3 ++ 9 files changed, 38 insertions(+), 61 deletions(-) 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()