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') %>