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

13 lines
419 B
Plaintext
Raw Normal View History

2024-05-09 10:56:56 +08:00
<% if (theme.waline.enable && post.comments){ %>
<script src='//unpkg.com/@waline/client/dist/Waline.min.js'></script>
<div id="waline"></div>
<script>
new Waline({
el: '#waline',
path: location.pathname,
serverURL: "<%= theme.waline.serverURL %>",
avatar: "<%= theme.waline.avatar %>",
placeholder: "<%= theme.waline.placeholder %>"
});
</script>
<% } %>