diff options
author | qqhann <qiu.gits@gmail.com> | 2019-11-30 19:02:54 +0300 |
---|---|---|
committer | qqhann <qiu.gits@gmail.com> | 2019-11-30 19:02:54 +0300 |
commit | 2e1e35a46e8e9f955a044a58bae93a89ac05cee6 (patch) | |
tree | 095c2cb0c21104d7e2ab98f5b01ddc1b7b68c389 | |
parent | 4d672b89071f1b858879073034b61f9b5fbe8a97 (diff) |
Update: default true math option
-rw-r--r-- | README.md | 2 | ||||
-rw-r--r-- | layouts/_default/baseof.html | 2 |
2 files changed, 3 insertions, 1 deletions
@@ -79,6 +79,8 @@ twitter = "your_twitter_id" # You can use favicon by addin them manually. useIcon = true useTwitterCard = true +# Use MathJax.js. Disabling site-wide and you still can enable in indivisual pages +math = true shareTo = ["Twitter", "Hatena", "Facebook", "Pocket"] showFooterCredits = true diff --git a/layouts/_default/baseof.html b/layouts/_default/baseof.html index d6ceffd..a1bc923 100644 --- a/layouts/_default/baseof.html +++ b/layouts/_default/baseof.html @@ -72,7 +72,7 @@ </div> </div> - {{ if .Site.Params.enableMathJax }} + {{ if or .Params.math ( default true .Site.Params.math ) }} <!-- Scripts --> <script type="text/javascript" src="https://cdnjs.cloudflare.com/ajax/libs/mathjax/2.7.5/MathJax.js?config=TeX-AMS-MML_HTMLorMML"></script> <!-- MathJax --> |