Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/toryanderson/hugo-icarus.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authordigitalcraftsman <digitalcraftsman@users.noreply.github.com>2017-01-21 00:51:57 +0300
committerGitHub <noreply@github.com>2017-01-21 00:51:57 +0300
commitf227e6698c87fa19190f749c03a0b8aa931467eb (patch)
tree0d9d07573d8e53e425e09f5da5275ab8bf5f8113
parentd06aefa0ed087f4d5c600eb88c05d1b8e3f24e65 (diff)
parent0699e5f8dee3f775b363359e8f74c0ead8e3e730 (diff)
Option to disable MathJax but enabled by default
-rw-r--r--README.md2
-rw-r--r--exampleSite/config.toml2
-rw-r--r--layouts/partials/footer_js.html2
3 files changed, 3 insertions, 3 deletions
diff --git a/README.md b/README.md
index 3a03def..6ff6e45 100644
--- a/README.md
+++ b/README.md
@@ -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: {