Skip to content

u2sb/vuepress-plugin-vssue-global

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

当前版本仅适配 vuepress 1.x

演示

安装

yarn add vuepress-plugin-vssue-global

配置

配置完全继承 @vssue/vuepress-plugin-vssue,增加配置项如下:

  • title: vssue title,支持 ejs 模板
  • needComments: 默认是否需要评论区,当配置为 false 时,需文章 frontmatter 添加comments: true才会开启评论区。
module.exports = {
  plugins: [
    [
      "vuepress-plugin-vssue-global",
      {
        platform: "github",
        title: "[Comment]<%- frontmatter.title %>",
        needComments: true,
        // 其他的 Vssue 配置
        clientId: "",
        clientSecret: "",
        owner: "",
        repo: "",
      },
    ],
  ],
};

开启和关闭评论

每篇文章单独控制评论区,需配置 frontmatter

关闭评论区:

comments: false

开启评论区:

comments: true

感谢

本插件开发参考了其他同类插件,在此表示感谢

About

Vuepress的Vssue全局评论插件

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published