24 lines
852 B
Plaintext
24 lines
852 B
Plaintext
{% if theme.valine.enable and theme.valine.appid and theme.valine.appkey %}
|
|
<script src="//cdn1.lncld.net/static/js/3.0.4/av-min.js"></script>
|
|
<script src="//unpkg.com/valine/dist/Valine.min.js"></script>
|
|
|
|
<script type="text/javascript">
|
|
var GUEST = ['nick','mail','link'];
|
|
var guest = '{{ theme.valine.guest_info }}';
|
|
guest = guest.split(',').filter(item=>{
|
|
return GUEST.indexOf(item)>-1;
|
|
});
|
|
new Valine({
|
|
el: '#comments' ,
|
|
verify: {{ theme.valine.verify }},
|
|
notify: {{ theme.valine.notify }},
|
|
appId: '{{ theme.valine.appid }}',
|
|
appKey: '{{ theme.valine.appkey }}',
|
|
placeholder: '{{ theme.valine.placeholder }}',
|
|
avatar:'{{ theme.valine.avatar }}',
|
|
guest_info:guest,
|
|
pageSize:'{{ theme.valine.pageSize }}' || 10,
|
|
});
|
|
</script>
|
|
{% endif %}
|