From 16fe9782f7a7fb2daea5a93b6306f8839c939d4e Mon Sep 17 00:00:00 2001 From: shenyu <448766534@qq.com> Date: Tue, 24 Mar 2020 22:19:01 +0800 Subject: [PATCH] :rocket: fix: tocbot warning --- README.md | 2 +- layout/_partial/after-footer.ejs | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index 6d0a05b..8cff45b 100644 --- a/README.md +++ b/README.md @@ -296,7 +296,7 @@ Use Tocbot to parse the title tags (h1~h6) in the content and insert the directo ``` md --- - toc: false + no_toc: true --- ``` diff --git a/layout/_partial/after-footer.ejs b/layout/_partial/after-footer.ejs index 3e834fd..8861c97 100644 --- a/layout/_partial/after-footer.ejs +++ b/layout/_partial/after-footer.ejs @@ -17,7 +17,7 @@ <% } %> -<% if (theme.toc && is_post() && page.toc){ %> +<% if (theme.toc && is_post() && !page.no_toc){ %> <%- js('/js/tocbot.min') %>