Blog vuepress adds comment function

Blog vuepress adds comment function

Currently, vuepress-plugin-comment supports using Valine in Vuepress to automatically manage SPA routing related work.
Remember to install the plug-in valine, otherwise the comments will not come out all the time.

Install plugin

If using npm:

npm install --save vuepress-plugin-comment
npm install --save valine

If you use yarn:

yarn add vuepress-plugin-comment -D
yarn add valine -D

Register leancloud

leancloudhttps://leancloud.cn/

Create application

Insert picture description here

Get appId and appKey

Insert picture description here

Quick to use

Add vuepress-plugin-comment to the plugin configuration of the vuepress project:

module.exports = {
    
    
  plugins: [
    [
      'vuepress-plugin-comment',
      {
    
    
        choosen: 'valine', 
        // options选项中的所有参数,会传给Valine的配置
        options: {
    
    
          el: '#valine-vuepress-comment',
          appId: 'Your own appId',
          appKey: 'Your own appKey'
        }
      }
    ]
  ]
}

Guess you like

Origin blog.csdn.net/qq_39367226/article/details/107449901