2020-03-19 14:51:48 +08:00
|
|
|
<% if(theme.valine.enable && theme.valine.appid && theme.valine.appkey) { %>
|
2020-03-21 23:04:01 +08:00
|
|
|
<div class="valine-container">
|
2020-03-25 22:55:41 +08:00
|
|
|
<script src='//unpkg.com/valine/dist/Valine.min.js'></script>
|
|
|
|
<!-- <script src='https://unpkg.com/valine@1.3.10/dist/Valine.min.js'></script>-->
|
|
|
|
<div id="vcomments"></div>
|
2020-03-21 23:04:01 +08:00
|
|
|
<script>
|
|
|
|
new Valine({
|
2020-03-25 22:55:41 +08:00
|
|
|
el: '#vcomments',
|
2020-03-21 23:04:01 +08:00
|
|
|
appId: '<%= theme.valine.appid %>',
|
|
|
|
appKey: '<%= theme.valine.appkey %>',
|
|
|
|
notify: '<%= theme.valine.notify %>',
|
|
|
|
verify: '<%= theme.valine.verify %>',
|
2020-03-25 22:55:41 +08:00
|
|
|
avatar: 'wavatar',
|
|
|
|
placeholder: '<%= theme.valine.placeholder %>',
|
|
|
|
lang: '<%= config.language%>'.toLowerCase()
|
2020-03-21 23:04:01 +08:00
|
|
|
})
|
|
|
|
</script>
|
|
|
|
</div>
|
|
|
|
<% } %>
|