hope主题 v2添加评论系统
...小于 1 分钟
waline 是一个基于 GitHub Action 的评论系统,可以很方便的集成到博客系统中。
vuepress-theme-hope 将主题选项中的 plugins.comment 作为插件选项提供给 @vuepress/plugin-comment,默认使用 Waline 作为评论系统。
在你的 vuepress 项目中,安装@waline/client 并配置 waline 选项:
npm i @waline/client
import { hopeTheme } from "vuepress-theme-hope";
export default {
theme: hopeTheme({
plugins: {
comment: {
// 选择一个评论服务
provider: "Waline",
// 服务选项
serverURL: "...", // your serverURL
},
},
}),
};
然后,你就可以在你的 markdown 文件中添加评论了:
原文链接: hope 主题 Waline 评论系统
温馨提示
在此之前,你需要先申请一个 Waline 评论系统的服务,并在服务设置中获取到你的 serverURL。 申请地址:Waline
Powered by Waline v3.2.2