diff options
author | amazingrise <8315221+AmazingRise@users.noreply.github.com> | 2020-07-13 17:19:14 +0300 |
---|---|---|
committer | amazingrise <8315221+AmazingRise@users.noreply.github.com> | 2020-07-13 17:19:14 +0300 |
commit | 248b6008b45ee9af2dcbdc6e8af9285c3eb9f2e8 (patch) | |
tree | 73fd7d8986792a40b448350e02ce578c9e20dca3 | |
parent | 106622dbda3705a6cad77ccc845defd32b9d3611 (diff) |
Fix the bug of ToC disabling
-rw-r--r-- | layouts/partials/head.html | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/layouts/partials/head.html b/layouts/partials/head.html index daf88de..fa45b73 100644 --- a/layouts/partials/head.html +++ b/layouts/partials/head.html @@ -65,7 +65,7 @@ {{ end }} {{ if and (not (.Params.disableToC) ) (.IsPage) }} - {{ if .Params.disableAutoCollapse }} + {{ if .Site.Params.disableAutoCollapse }} <script src="{{.Site.BaseURL}}/js/toc.js"></script> {{ else }} <script src="{{.Site.BaseURL}}/js/toc-collapse.js"></script> |