From 661efd357aa24999dc2f7cde606eb6ecaa778f81 Mon Sep 17 00:00:00 2001 From: public <841361034@qq.com> Date: Thu, 2 Nov 2023 15:19:00 +0800 Subject: [PATCH] Add: Comment Component --- src/.vuepress/config.ts | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/src/.vuepress/config.ts b/src/.vuepress/config.ts index e9f2455..57200d0 100644 --- a/src/.vuepress/config.ts +++ b/src/.vuepress/config.ts @@ -1,6 +1,7 @@ import { defineUserConfig } from "vuepress"; import theme from "./theme.js"; import { searchProPlugin } from "vuepress-plugin-search-pro"; +import { commentPlugin } from "vuepress-plugin-comment2"; export default defineUserConfig({ base: "/", @@ -28,6 +29,15 @@ export default defineUserConfig({ }, ], }), + commentPlugin({ + provider: "Giscus", + repo: 'leezekee/blog-comment', + repoId: 'R_kgDOKoOSxw', + category: 'Announcements', + categoryId: 'DIC_kwDOKoOSx84CaoBQ', + mapping: 'pathname', + strict: false, + }) ], head: [ ['script',