From 5e69aff61f181eb0c4672b905e35af4281fdfe37 Mon Sep 17 00:00:00 2001 From: XPoet Date: Mon, 26 Oct 2020 09:35:50 +0800 Subject: [PATCH] fix: fixed go comment button displayed when comments are not enabled --- layout/_partial/tools.ejs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/layout/_partial/tools.ejs b/layout/_partial/tools.ejs index b0bffde..c239a71 100644 --- a/layout/_partial/tools.ejs +++ b/layout/_partial/tools.ejs @@ -6,14 +6,14 @@ <% } %> - <% if (is_post()) { %> + <% if (is_post() && (theme.comments.valine.enable || theme.comments.gitalk.enable)) { %>
  • <% } %> - <% if (theme.toc.enable && is_post()) { %> + <% if (is_post() && theme.toc.enable) { %>