fix: valine notify

This commit is contained in:
shenyu 2020-02-10 12:29:25 +08:00
parent d1534ef60e
commit 9fac2a8e2c
2 changed files with 3 additions and 2 deletions

View File

@ -99,6 +99,7 @@ leancloud:
valine:
enable: true # 是否启用
verify: false # 是否启用防垃圾验证
notify: false # 是否开启邮件提醒(https://valine.js.org/notify.html)
avatar: mp # 头像样式(https://valine.js.org/avatar.html)
placeholder: 给我的文章加点评论吧~ # placeholder

View File

@ -9,11 +9,11 @@
<script>
new Valine({
el: '#vcomments',
notify: false,
verify: '<%- theme.leancloud.verify %>',
app_id: '<%- theme.leancloud.app_id %>',
app_key: '<%- theme.leancloud.app_key %>',
path: window.location.pathname,
notify: '<%- theme.valine.notify %>',
verify: '<%- theme.valine.verify %>',
avatar: '<%- theme.valine.avatar %>',
placeholder: '<%- theme.valine.placeholder %>',
recordIP: true