Skip to content

Commit 64bc531

Browse files
author
chufan
committed
feat: 集成artalk评论系统
1 parent 69fb29c commit 64bc531

File tree

5 files changed

+47
-25
lines changed

5 files changed

+47
-25
lines changed

docs/.vuepress/config/plugins.config.ts

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
import {searchProPlugin} from "vuepress-plugin-search-pro";
2+
// import {commentPlugin} from "vuepress-plugin-comment2";
23

34
/**
45
* 使用的插件配置
@@ -21,5 +22,14 @@ export default {
2122
},
2223
],
2324
}),
25+
// commentPlugin({
26+
// provider: "Artalk",
27+
// server:"http://127.0.0.1:8080",
28+
// // el:'#Comments',
29+
// // pageKey: `${location.pathname}`,
30+
// // pageTitle: `${document.title}`,
31+
// site: 'JavaScriptCollection',
32+
//
33+
// })
2434
]
2535
}

docs/.vuepress/config/theme.config.ts

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -71,6 +71,11 @@ export default {
7171
// },
7272

7373
plugins: {
74+
comment:{
75+
provider: "Artalk",
76+
server:"https://408.142vip.cn/",
77+
site:'JavaScriptCollection',
78+
},
7479
readingTime: {
7580
wordPerMinute: 200
7681
},
Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,4 @@
1-
1+
---
2+
comment: true
3+
---
24
# 前端

package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -46,6 +46,7 @@
4646
"vercel": "^32.4.1",
4747
"vue": "^3.3.4",
4848
"vuepress": "2.0.0-beta.67",
49+
"vuepress-plugin-comment2": "2.0.0-beta.238",
4950
"vuepress-plugin-components": "2.0.0-beta.238",
5051
"vuepress-plugin-md-enhance": "2.0.0-beta.238",
5152
"vuepress-plugin-search-pro": "2.0.0-beta.238",

pnpm-lock.yaml

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

0 commit comments

Comments
 (0)