feat: valine comment verify

This commit is contained in:
shenyu 2020-01-24 13:02:50 +08:00
parent db78e3261e
commit 3908fbe0e5
2 changed files with 4 additions and 2 deletions

View File

@ -1,7 +1,8 @@
# 侧边栏菜单
menu:
主页: /
目录: /archives
归档: /archives
分类: /categories
标签: /tags
旅行: /tags/旅行/
摄影: http://shenyu-vip.lofter.com
@ -74,6 +75,7 @@ leancloud:
# Valine配置
valine:
enable: true # 是否启用
verify: false # 是否启用防垃圾验证
avatar: mp # 头像样式(https://valine.js.org/avatar.html)
placeholder: 给我的文章加点评论吧~ # placeholder

View File

@ -10,7 +10,7 @@
new Valine({
el: '#vcomments',
notify: false,
verify: false,
verify: '<%- theme.leancloud.verify %>',
app_id: '<%- theme.leancloud.app_id %>',
app_key: '<%- theme.leancloud.app_key %>',
path: window.location.pathname,