From ecc7086da523397834a054cf5235cf7084b64f1e Mon Sep 17 00:00:00 2001 From: amazingrise <8315221+AmazingRise@users.noreply.github.com> Date: Thu, 4 Jun 2020 20:28:40 +0800 Subject: Replace debounce, and add an option for ToC collapsing. --- layouts/partials/head.html | 14 +++++--------- 1 file changed, 5 insertions(+), 9 deletions(-) (limited to 'layouts') 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"); - - {{ if .Params.enableMathJax }} {{ partial "mathjax.html" . }} {{ end }} {{ if and (not (.Params.disableToC) ) (.IsPage) }} - -{{ else }} - + {{ if .Params.disableAutoCollapse }} + + {{ else }} + + {{ end }} {{ end }} {{ if and (.Site.Params.enableGitalk) (.IsPage) }} -- cgit v1.2.3