Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Feat(comment):update valine comment version #558

Merged
merged 2 commits into from Oct 19, 2017
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
3 changes: 3 additions & 0 deletions _config.template.yml
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion layout/_widget/comment/valine/common.ejs
@@ -1,2 +1,2 @@
<script src="//cdn1.lncld.net/static/js/3.0.4/av-min.js"></script>
<script src="//cdn.jsdelivr.net/npm/valine@1.1.1/dist/Valine.min.js"></script>
<script src="//cdn.jsdelivr.net/gh/xcss/valine@v1.1.7-rc3/dist/Valine.min.js"></script>
4 changes: 3 additions & 1 deletion layout/_widget/comment/valine/main.ejs
Expand Up @@ -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 %>"
});
}
</script>