From 8c205308901cfc86c23f07c0f3d4f7abaa9a9e2b Mon Sep 17 00:00:00 2001 From: ougege <1258947325@qq.com> Date: Wed, 26 Jun 2024 17:28:49 +0800 Subject: [PATCH] =?UTF-8?q?feat:=20=E5=A2=9E=E5=8A=A0giscus=E8=AF=84?= =?UTF-8?q?=E8=AE=BA=E7=B3=BB=E7=BB=9F?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Docs/.vitepress/blog-theme.ts | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/Docs/.vitepress/blog-theme.ts b/Docs/.vitepress/blog-theme.ts index e0c8b83..754d12e 100644 --- a/Docs/.vitepress/blog-theme.ts +++ b/Docs/.vitepress/blog-theme.ts @@ -74,6 +74,18 @@ const blogTheme = getThemeConfig({ // ], // duration: 0 // }, + // giscus配置: https://giscus.app/zh-CN + comment: { + type: 'giscus', + options: { + repo: 'MuYi086/blog', + repoId: 'MDEwOlJlcG9zaXRvcnkxNzE3NzI2NTU=', + category: 'Announcements', + categoryId: 'DIC_kwDOCj0K784CgZR2', + inputPosition: 'top' + }, + mobileMinify: true + } }) export { blogTheme }