Skip to content

Commit baea3af

Browse files
committed
updates
1 parent a05cf0f commit baea3af

File tree

4 files changed

+67
-26
lines changed

4 files changed

+67
-26
lines changed

package-lock.json

Lines changed: 54 additions & 23 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,8 +12,9 @@
1212
},
1313
"devDependencies": {
1414
"@vuepress/bundler-vite": "2.0.0-rc.23",
15-
"@vuepress/plugin-slimsearch": "2.0.0-rc.104",
15+
"@vuepress/plugin-comment": "^2.0.0-rc.105",
1616
"@vuepress/plugin-search": "2.0.0-rc.104",
17+
"@vuepress/plugin-slimsearch": "2.0.0-rc.104",
1718
"mathjax-full": "^3.2.2",
1819
"sass-embedded": "^1.88.0",
1920
"vue": "^3.5.13",

src/.vuepress/config.ts

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
import { defineUserConfig } from "vuepress";
2-
import { slimsearchPlugin } from '@vuepress/plugin-slimsearch'
2+
import { slimsearchPlugin } from '@vuepress/plugin-slimsearch';
3+
import { commentPlugin } from '@vuepress/plugin-comment';
34

45
import theme from "./theme.js";
56

@@ -16,6 +17,14 @@ export default defineUserConfig({
1617
slimsearchPlugin({
1718
indexContent: true
1819
}),
20+
commentPlugin({
21+
comment: true,
22+
provider: "Giscus",
23+
repo: "BinaryOracle/BlogComment",
24+
repoId: "R_kgDOOtFoWQ",
25+
category: "General",
26+
categoryId: "DIC_kwDOOtFoWc4CqXdZ",
27+
}),
1928
],
2029

2130
// 和 PWA 一起启用

src/.vuepress/theme.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -97,7 +97,7 @@ export default hopeTheme({
9797
// 在这里配置主题提供的插件
9898
plugins: {
9999
blog: true,
100-
100+
101101
components: {
102102
components: ["Badge", "VPCard"],
103103
},

0 commit comments

Comments
 (0)