vuepress-plugin-vssue-global

0.0.3 • Public • Published

仅适配 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

Package Sidebar

Install

npm i vuepress-plugin-vssue-global

Weekly Downloads

11

Version

0.0.3

License

Apache-2.0

Unpacked Size

16.5 kB

Total Files

8

Last publish

Collaborators

  • monologuechi