summaryrefslogtreecommitdiff
path: root/_includes/scripts/mathjax.html
diff options
context:
space:
mode:
authorKarl Hallsby <karl@hallsby.com>2021-10-03 00:35:46 -0500
committerKarl Hallsby <karl@hallsby.com>2021-10-03 02:16:55 -0500
commite2c06d2681e18946ab6c3e3e6075aed92a4d13be (patch)
treeb30dce94387f4717394277932f691519e0281c44 /_includes/scripts/mathjax.html
parenta10ad0a99ba6e44a35253c3bcaff80c90e99348e (diff)
Change to al-folio theme
Theme at: https://github.com/alshedivat/al-folio
Diffstat (limited to '_includes/scripts/mathjax.html')
-rw-r--r--_includes/scripts/mathjax.html12
1 files changed, 12 insertions, 0 deletions
diff --git a/_includes/scripts/mathjax.html b/_includes/scripts/mathjax.html
new file mode 100644
index 0000000..53db9e0
--- /dev/null
+++ b/_includes/scripts/mathjax.html
@@ -0,0 +1,12 @@
+{% if site.enable_math %}
+<!-- MathJax -->
+<script type="text/javascript">
+ window.MathJax = {
+ tex: {
+ tags: 'ams'
+ }
+ };
+</script>
+<script defer type="text/javascript" id="MathJax-script" src="https://cdn.jsdelivr.net/npm/mathjax@{{ site.mathjax.version }}/es5/tex-mml-chtml.js"></script>
+<script defer src="https://polyfill.io/v3/polyfill.min.js?features=es6"></script>
+{% endif %}