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

github.com/qqhann/hugo-primer.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--README.md2
-rw-r--r--layouts/_default/baseof.html2
2 files changed, 3 insertions, 1 deletions
diff --git a/README.md b/README.md
index 4455fbc..dfc2ee6 100644
--- a/README.md
+++ b/README.md
@@ -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 -->