fix: fixed go comment button displayed when comments are not enabled
This commit is contained in:
parent
ba17b0da9c
commit
5e69aff61f
|
@ -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>
|
||||||
|
|
Loading…
Reference in New Issue