2020-04-14 21:18:37 +08:00
|
|
|
<% if(
|
|
|
|
theme.comments.valine.enable
|
|
|
|
&& theme.comments.valine.appid
|
|
|
|
&& theme.comments.valine.appkey
|
|
|
|
) { %>
|
2020-04-01 12:09:06 +08:00
|
|
|
<div class="valine-container">
|
|
|
|
<script src='//unpkg.com/valine/dist/Valine.min.js'></script>
|
|
|
|
<div id="vcomments"></div>
|
|
|
|
<script>
|
|
|
|
new Valine({
|
|
|
|
el: '#vcomments',
|
2020-04-07 11:57:53 +08:00
|
|
|
appId: '<%= theme.comments.valine.appid %>',
|
|
|
|
appKey: '<%= theme.comments.valine.appkey %>',
|
2020-04-01 12:09:06 +08:00
|
|
|
avatar: 'wavatar',
|
2020-04-24 22:02:10 +08:00
|
|
|
enableQQ: true,
|
2020-04-07 11:57:53 +08:00
|
|
|
placeholder: '<%= theme.comments.valine.placeholder %>',
|
2020-04-14 21:18:37 +08:00
|
|
|
lang: '<%= config.language %>'.toLowerCase()
|
2020-04-01 12:09:06 +08:00
|
|
|
})
|
|
|
|
</script>
|
|
|
|
</div>
|
|
|
|
<% } %>
|