load the toc js conditionally
This commit is contained in:
parent
763a218011
commit
136f700b91
|
@ -37,6 +37,8 @@
|
|||
{{ end }}
|
||||
|
||||
{{ define "scripts" }}
|
||||
<script src="/js/table-of-contents.js"></script>
|
||||
{{ if or .Params.toc .Site.Params.toc }}
|
||||
<script src="/js/table-of-contents.js"></script>
|
||||
{{ end }}
|
||||
<script src="https://unpkg.com/prismjs@^1.2"></script>
|
||||
{{ end }}
|
||||
|
|
Loading…
Reference in New Issue