From 785a9f33e19f0e09821c9b5484acef3ffa3ada8f Mon Sep 17 00:00:00 2001 From: shenyu <448766534@qq.com> Date: Tue, 24 Mar 2020 22:09:20 +0800 Subject: [PATCH] :rocket: fix: warning --- layout/_partial/after-footer.ejs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/layout/_partial/after-footer.ejs b/layout/_partial/after-footer.ejs index be4e577..3e834fd 100644 --- a/layout/_partial/after-footer.ejs +++ b/layout/_partial/after-footer.ejs @@ -17,7 +17,7 @@ <% } %> -<% if (theme.toc && is_post()){ %> +<% if (theme.toc && is_post() && page.toc){ %> <%- js('/js/tocbot.min') %>