diff options
author | digitalcraftsman <digitalcraftsman@users.noreply.github.com> | 2017-01-21 00:51:57 +0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-01-21 00:51:57 +0300 |
commit | f227e6698c87fa19190f749c03a0b8aa931467eb (patch) | |
tree | 0d9d07573d8e53e425e09f5da5275ab8bf5f8113 | |
parent | d06aefa0ed087f4d5c600eb88c05d1b8e3f24e65 (diff) | |
parent | 0699e5f8dee3f775b363359e8f74c0ead8e3e730 (diff) |
Option to disable MathJax but enabled by default
-rw-r--r-- | README.md | 2 | ||||
-rw-r--r-- | exampleSite/config.toml | 2 | ||||
-rw-r--r-- | layouts/partials/footer_js.html | 2 |
3 files changed, 3 insertions, 3 deletions
@@ -133,7 +133,7 @@ Mathematical equations in form of LaTeX or MathML code can be rendered with the You can also print formulas inline. In this case wrap the formula only once with `$`. -If you don't need equations, you can disable MathJax but putting `mathjax = false` in your config.toml. This will prevent clients from unnecessarily downloading the MathJax library. +If you don't need equations, you can disable MathJax but putting `disable_mathjax = true` in your config.toml. This will prevent clients from unnecessarily downloading the MathJax library. ## Shortcodes diff --git a/exampleSite/config.toml b/exampleSite/config.toml index c299ded..de3ee8e 100644 --- a/exampleSite/config.toml +++ b/exampleSite/config.toml @@ -24,7 +24,7 @@ theme = "hugo-icarus-theme" copyright = "Powered by [Hugo](//gohugo.io). Theme by [PPOffice](http://github.com/ppoffice)." avatar = "css/images/avatar.png" logo = "css/images/logo.png" - mathjax = true # set to false to disable MathJax + disable_mathjax = false # set to true to disable MathJax # Format dates with Go's time formatting date_format = "2006-01-02" diff --git a/layouts/partials/footer_js.html b/layouts/partials/footer_js.html index e3abb52..7887047 100644 --- a/layouts/partials/footer_js.html +++ b/layouts/partials/footer_js.html @@ -8,7 +8,7 @@ {{ end }} <script>hljs.initHighlightingOnLoad();</script> -{{ if .Site.Params.mathjax }} +{{ if not .Site.Params.disable_mathjax }} <script type="text/x-mathjax-config"> MathJax.Hub.Config({ tex2jax: { |