diff options
author | amazingrise <8315221+AmazingRise@users.noreply.github.com> | 2020-06-04 18:14:02 +0300 |
---|---|---|
committer | amazingrise <8315221+AmazingRise@users.noreply.github.com> | 2020-06-04 18:14:02 +0300 |
commit | 7980b976cfc62ab3ed1c852c47ea00b112f01b63 (patch) | |
tree | a1a283fb091d335f751887a6746cbf95b329d9ee /layouts/partials/head.html | |
parent | dbe3f9a9ebf7900f7c745eb6262b95c5c307fcc6 (diff) | |
parent | ecc7086da523397834a054cf5235cf7084b64f1e (diff) |
Merge branch 'testing' with ToC collapse feature.
Diffstat (limited to 'layouts/partials/head.html')
-rw-r--r-- | layouts/partials/head.html | 14 |
1 files changed, 5 insertions, 9 deletions
diff --git a/layouts/partials/head.html b/layouts/partials/head.html index 773bff3..588d07e 100644 --- a/layouts/partials/head.html +++ b/layouts/partials/head.html @@ -40,20 +40,16 @@ loadCSS("https://fonts.googleapis.com/css?family=Lora|Montserrat|Fira+Mono|Noto+Serif+SC|Material+Icons"); </script> -<script src="{{.Site.BaseURL}}/js/table.js"></script> - {{ if .Params.enableMathJax }} {{ partial "mathjax.html" . }} {{ end }} {{ if and (not (.Params.disableToC) ) (.IsPage) }} -<script src="{{.Site.BaseURL}}/js/toc.js"></script> -{{ else }} -<style> - .toc{ - display: none !important; - } -</style> + {{ if .Params.disableAutoCollapse }} + <script src="{{.Site.BaseURL}}/js/toc.js"></script> + {{ else }} + <script src="{{.Site.BaseURL}}/js/toc-collapse.js"></script> + {{ end }} {{ end }} {{ if and (.Site.Params.enableGitalk) (.IsPage) }} |