From 43d870327deb99854cb98cbfd2eef6af2534e7cf Mon Sep 17 00:00:00 2001 From: XPoet Date: Fri, 24 Apr 2020 22:02:10 +0800 Subject: [PATCH] update valine comment plugin --- _config.yml | 15 +++++++-------- layout/_partial/comments/valine.ejs | 4 ++-- 2 files changed, 9 insertions(+), 10 deletions(-) diff --git a/_config.yml b/_config.yml index 35be824..431be4a 100644 --- a/_config.yml +++ b/_config.yml @@ -1,7 +1,7 @@ # theme basic info theme_info: name: ILS - version: 1.0 + version: 1.0.2 author: XPoet repository: https://github.com/XPoet/hexo-theme-ils @@ -25,13 +25,12 @@ comments: # Valine. # more info please open https://github.com/xCss/Valine valine: - enable: false - appid: # your leancloud application appid - appkey: # your leancloud application appkey - notify: false # mail notifier, https://github.com/xCss/Valine/wiki - verify: false # Verification code - placeholder: your placeholder - + enable: false # true or false + appid: # your leancloud application appid + appkey: # your leancloud application appkey + meta: # type: Array, default: ['nick','mail','link'] + placeholder: Please share your thoughts with us in the comments below! #your placeholder + # Gitalk # For more information: https://gitalk.github.io, https://github.com/gitalk/gitalk gitalk: diff --git a/layout/_partial/comments/valine.ejs b/layout/_partial/comments/valine.ejs index b0dcb29..b1271d4 100755 --- a/layout/_partial/comments/valine.ejs +++ b/layout/_partial/comments/valine.ejs @@ -11,9 +11,9 @@ el: '#vcomments', appId: '<%= theme.comments.valine.appid %>', appKey: '<%= theme.comments.valine.appkey %>', - notify: '<%= theme.comments.valine.notify %>', - verify: '<%= theme.comments.valine.verify %>', + meta: '<%= theme.comments.valine.meta %>', avatar: 'wavatar', + enableQQ: true, placeholder: '<%= theme.comments.valine.placeholder %>', lang: '<%= config.language %>'.toLowerCase() })