Skip to content

Latest commit

 

History

History
37 lines (28 loc) · 746 Bytes

README.md

File metadata and controls

37 lines (28 loc) · 746 Bytes

plugin-posts-encrypt

A vuepress plugin to add access verification to your blog.

对原 vuepress-plugin-posts-encrypt插件的改造。

使用

  • 安装
npm install vuepress-plugin-posts-encrypt-ren
  • 使用

  在 vuepress 的 config.js 中添加:

module.exports = {
  plugins: [
    [
      // 访问验证插件
      'posts-encrypt-ren',
      {
        route: '/auth.html',
        passwd: '@Lencamo',
        expires: 72 * 60 * 60 * 1000,
        encryptInDev: true,
        checkAll: true
      }
    ]
  ]
}

更多配置,请参考vuepress-plugin-posts-encrypt