hexo-theme-keep/layout/common/valine.ejs

17 lines
645 B
Plaintext
Raw Normal View History

<% if(theme.valine.enable && theme.valine.appid && theme.valine.appkey) { %>
<div class="valine-container">
<script src='https://unpkg.com/valine@1.3.10/dist/Valine.min.js'></script>
<div id="valine"></div>
<script>
new Valine({
el: '#valine',
appId: '<%= theme.valine.appid %>',
appKey: '<%= theme.valine.appkey %>',
notify: '<%= theme.valine.notify %>',
verify: '<%= theme.valine.verify %>',
placeholder: '<%= theme.valine.placeholder %>'
})
</script>
</div>
<% } %>