fix: fixed go comment button displayed when comments are not enabled

This commit is contained in:
XPoet 2020-10-26 09:35:50 +08:00
parent ba17b0da9c
commit 5e69aff61f
1 changed files with 2 additions and 2 deletions

View File

@ -6,14 +6,14 @@
</li> </li>
<% } %> <% } %>
<% if (is_post()) { %> <% if (is_post() && (theme.comments.valine.enable || theme.comments.gitalk.enable)) { %>
<li class="go-comment"> <li class="go-comment">
<i class="fa fa-comment"></i> <i class="fa fa-comment"></i>
</li> </li>
<% } %> <% } %>
<!-- TOC aside toggle --> <!-- TOC aside toggle -->
<% if (theme.toc.enable && is_post()) { %> <% if (is_post() && theme.toc.enable) { %>
<li class="tools-item page-aside-toggle"> <li class="tools-item page-aside-toggle">
<i class="fa fa-outdent"></i> <i class="fa fa-outdent"></i>
</li> </li>