This commit is contained in:
沈宇
2020-12-24 13:37:09 +08:00
4 changed files with 6 additions and 5 deletions

View File

@@ -1,4 +1,4 @@
<% if (theme.gitalk.enable) { %>
<% if (theme.gitalk.enable && post.comments) { %>
<div class="gitalk" id="gitalk-container"></div>
<%- css('https://cdn.jsdelivr.net/npm/gitalk@1.6.2/dist/gitalk.css') %>
<%- js('https://cdn.jsdelivr.net/npm/gitalk@1.6.2/dist/gitalk.min.js') %>
@@ -18,4 +18,4 @@
gitalk.render('gitalk-container')
</script>
<% } %>
<% } %>

View File

@@ -1,4 +1,4 @@
<% if (!index && theme.leancloud && theme.leancloud.enable){ %>
<% if (!index && theme.leancloud && theme.leancloud.enable && post.comments){ %>
<!-- minivaline评论 -->
<div id="mvcomments-box">
<div id="mvcomments"></div>

View File

@@ -1,4 +1,4 @@
<% if (!index && theme.leancloud && theme.leancloud.enable){ %>
<% if (!index && theme.leancloud && theme.leancloud.enable && post.comments){ %>
<!-- valine评论 -->
<div id="vcomments-box">
<div id="vcomments"></div>