🚀 fix: tocbot warning

This commit is contained in:
shenyu 2020-03-24 22:19:01 +08:00
parent 785a9f33e1
commit 16fe9782f7
2 changed files with 2 additions and 2 deletions

View File

@ -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
---
```

View File

@ -17,7 +17,7 @@
</script>
<% } %>
<% if (theme.toc && is_post() && page.toc){ %>
<% if (theme.toc && is_post() && !page.no_toc){ %>
<%- js('/js/tocbot.min') %>
<script>
// Tocbot_v4.7.0 http://tscanlin.github.io/tocbot/