From 3908fbe0e5f0e13bd0a6346c478cabde6640d825 Mon Sep 17 00:00:00 2001 From: shenyu <448766534@qq.com> Date: Fri, 24 Jan 2020 13:02:50 +0800 Subject: [PATCH] feat: valine comment verify --- _config.yml | 4 +++- layout/_partial/post/valine.ejs | 2 +- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/_config.yml b/_config.yml index 11e0198..35e10b1 100644 --- a/_config.yml +++ b/_config.yml @@ -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 diff --git a/layout/_partial/post/valine.ejs b/layout/_partial/post/valine.ejs index eea7dd9..ba1ae6b 100644 --- a/layout/_partial/post/valine.ejs +++ b/layout/_partial/post/valine.ejs @@ -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,