diff --git a/_config.template.yml b/_config.template.yml index b59a95fb7..a75c5407f 100644 --- a/_config.template.yml +++ b/_config.template.yml @@ -237,6 +237,9 @@ comment: gitment_client_secret : # github app client secret valine_leancloud_appId: # leancloud application app id valine_leancloud_appKey: # leancloud application app key + valine_notify: false # valine mail notify (true/false) https://github.com/xCss/Valine/wiki + valine_verify: false # valine verify code (true/false) + valine_placeholder: # valine comment input placeholder(like: Please leave your footprints ) gitalk_owner: # git repo of the hexo gitalk_repo: # git repo's owner gitalk_client_id: # github app client id diff --git a/layout/_widget/comment/valine/common.ejs b/layout/_widget/comment/valine/common.ejs index 97a3f5a77..388d22bb6 100644 --- a/layout/_widget/comment/valine/common.ejs +++ b/layout/_widget/comment/valine/common.ejs @@ -1,2 +1,2 @@ - \ No newline at end of file + \ No newline at end of file diff --git a/layout/_widget/comment/valine/main.ejs b/layout/_widget/comment/valine/main.ejs index e6fe133fa..cf782738d 100644 --- a/layout/_widget/comment/valine/main.ejs +++ b/layout/_widget/comment/valine/main.ejs @@ -3,9 +3,11 @@ new Valine({ av: AV, // source from av-min.js el: '.comment', + notify: <%= theme.comment.valine_notify %>, + verify: <%= theme.comment.valine_verify %>, app_id: "<%= theme.comment.valine_leancloud_appId %>", app_key: "<%= theme.comment.valine_leancloud_appKey %>", - placeholder: 'ヾノ≧∀≦)o来啊,快活啊!' + placeholder: "<%= theme.comment.valine_placeholder %>" }); } \ No newline at end of file