hexo-theme-keep/layout/_partial/comments/valine.ejs

23 lines
817 B
Plaintext
Executable File

<% if(
theme.comments.valine.enable
&& theme.comments.valine.appid
&& theme.comments.valine.appkey
) { %>
<div class="valine-container">
<script src='//unpkg.com/valine/dist/Valine.min.js'></script>
<div id="vcomments"></div>
<script>
new Valine({
el: '#vcomments',
appId: '<%= theme.comments.valine.appid %>',
appKey: '<%= theme.comments.valine.appkey %>',
notify: '<%= theme.comments.valine.notify %>',
verify: '<%= theme.comments.valine.verify %>',
avatar: 'wavatar',
placeholder: '<%= theme.comments.valine.placeholder %>',
lang: '<%= config.language %>'.toLowerCase()
})
</script>
</div>
<% } %>