This repository has been archived on 2024-04-08. You can view files and clone it, but cannot push or open issues or pull requests.
mystic/themes/hueman/layout/comment/valine.ejs

20 lines
843 B
Plaintext
Raw Permalink Normal View History

2018-09-03 07:41:16 +00:00
<% if (typeof(script) !== 'undefined' && script) { %>
<script src="//cdn1.lncld.net/static/js/3.0.4/av-min.js"></script>
<script src='//unpkg.com/valine/dist/Valine.min.js'></script>
<script>
new Valine({
el: '#valine-thread' ,
notify:<%= theme.comment.valine.notify %>,
verify:<%= theme.comment.valine.verify %>,
app_id: '<%= theme.comment.valine.appId %>',
app_key: '<%= theme.comment.valine.appKey %>',
placeholder: '<%= theme.comment.valine.placeholder %>',
pageSize: '<%= theme.comment.valine.pageSize %>',
avatar: '<%= theme.comment.valine.avatar %>',
avatar_cdn: '<%= theme.comment.valine.avatar_cdn %>'
});
</script>
<% } else { %>
<div id="valine-thread"></div>
<% } %>