Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/AmazingRise/hugo-theme-diary.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authoramazingrise <8315221+AmazingRise@users.noreply.github.com>2020-07-13 17:19:14 +0300
committeramazingrise <8315221+AmazingRise@users.noreply.github.com>2020-07-13 17:19:14 +0300
commit248b6008b45ee9af2dcbdc6e8af9285c3eb9f2e8 (patch)
tree73fd7d8986792a40b448350e02ce578c9e20dca3
parent106622dbda3705a6cad77ccc845defd32b9d3611 (diff)
Fix the bug of ToC disabling
-rw-r--r--layouts/partials/head.html2
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>