hexo/themes/blank/layout/partial/_comment/valine.ejs

21 lines
882 B
Plaintext
Raw Normal View History

2024-05-09 10:56:56 +08:00
<% if (theme.valine.enable && post.comments){ %>
<div id="valine"></div>
<script src="https://cdn.jsdelivr.net/npm/valine/dist/Valine.min.js"></script>
<script>
new Valine({
el: '#valine',
appId: "<%= theme.valine.appid %>",
appKey: "<%= theme.valine.appkey %>",
avatar: "<%= theme.valine.avatar %>",
lang: "<% theme.valine.lang %>",
meta: '<%= theme.valine.meta %>'.split(','),
requiredFields: '<%= theme.valine.requiredFields %>'.split(','),
placeholder: "<%= theme.valine.placeholder %>",
pageSize:'<%= theme.valine.pageSize %>',
recordIP: '<%= theme.valine.recordIP %>',
serverURLs: "<%= theme.valine.serverURLs %>",
emojiCDN: "<%= theme.valine.emojiCDN %>",
enableQQ: "<%= theme.valine.enableQQ %>",
});
</script>
<% } %>