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
Get appId and appKey
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'
}
}
]
]
}