hugo-soresu

My fork of hugo-xmin

git clone git://git.shimmy1996.com/hugo-soresu.git
commit 3899a2a8d9955eff24b701ff1c89edb7b8a2618e
parent 5bd689749ae6394aeb2937f9c7292d96c975ffd5
Author: Shimmy Xu <shimmy.xu@shimmy1996.com>
Date:   Mon, 28 May 2018 19:39:08 -0500

Use inline config for Mathjax.

Diffstat:
Mlayouts/partials/include_js.html | 12+++++++++++-
1 file changed, 11 insertions(+), 1 deletion(-)
diff --git a/layouts/partials/include_js.html b/layouts/partials/include_js.html
@@ -1,2 +1,12 @@
 <script type="text/javascript" src="/js/math-code.js"></script>
-<script type="text/javascript" async src="https://cdnjs.cloudflare.com/ajax/libs/mathjax/2.7.4/MathJax.js?config=TeX-MML-AM_CHTML" integrity="sha256-GhM+5JHb6QUzOQPXSJLEWP7R73CbkisjzK5Eyij4U9w=" crossorigin="anonymous"></script>
+<script type="text/x-mathjax-config">
+  MathJax.Hub.Config({
+    jax: ["input/TeX","output/CommonHTML"],
+    extensions: ["tex2jax.js","MathMenu.js", "a11y/accessibility-menu.js"],
+    TeX: {
+      extensions: ["AMSmath.js","AMSsymbols.js","noErrors.js","noUndefined.js"]
+    },
+    showMathMenu: true
+  });
+</script>
+<script type="text/javascript" async src="https://cdnjs.cloudflare.com/ajax/libs/mathjax/2.7.4/MathJax.js" integrity="sha256-GhM+5JHb6QUzOQPXSJLEWP7R73CbkisjzK5Eyij4U9w=" crossorigin="anonymous"></script>