add include_toc options and update readme.md
This commit is contained in:
parent
5427aefb1f
commit
f37e0a4ab3
2 changed files with 3 additions and 1 deletions
|
@ -7,7 +7,7 @@
|
|||
{{ partial "highlight-js.html" . }}
|
||||
{{ with .Site.Params.toc }}
|
||||
{{ if and (eq . "tocbot") (ne $include_toc false) }}
|
||||
<script src="/js/tocbot.js"></script>
|
||||
<script src="https://cdnjs.cloudflare.com/ajax/libs/tocbot/4.4.2/tocbot.js"></script>
|
||||
<script type="text/javascript">
|
||||
if (tocbot) {
|
||||
tocbot.init({
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue