diff options
author | olOwOlo <26087907+olOwOlo@users.noreply.github.com> | 2017-12-06 20:34:22 +0800 |
---|---|---|
committer | olOwOlo <26087907+olOwOlo@users.noreply.github.com> | 2017-12-06 20:34:22 +0800 |
commit | 1bb6eea8a84cbf67a7396abb63223f6a719aad60 (patch) | |
tree | e74741aaa70ad3002ff64aff4843a10f10cf6212 /layouts/partials/scripts.html | |
parent | 8c078104847c7f0698407a3b97ab106f43d6aad2 (diff) |
feat: allow set something for a single content
* Now, you can open or close toc, copyright, reward and mathjax for a single content.
* Also change the default global settings: autoCollapseToc = true -> false; mathjax = true -> false
Diffstat (limited to 'layouts/partials/scripts.html')
-rw-r--r-- | layouts/partials/scripts.html | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/layouts/partials/scripts.html b/layouts/partials/scripts.html index 6d4b51b..841aaa0 100644 --- a/layouts/partials/scripts.html +++ b/layouts/partials/scripts.html @@ -15,7 +15,7 @@ {{- end }} <script type="text/javascript" src="{{ "dist/even.min.js?v=2.7.0" | relURL }}"></script> -{{- if and (and .Site.Params.mathjax (ne .Params.mathjax false)) (or .IsPage .IsHome) }} +{{- if and (or .Params.mathjax (and .Site.Params.mathjax (ne .Params.mathjax false))) (or .IsPage .IsHome) }} <script type="text/javascript"> window.MathJax = { showProcessingMessages: false, |