aboutsummaryrefslogtreecommitdiff
path: root/layouts
diff options
context:
space:
mode:
Diffstat (limited to 'layouts')
-rw-r--r--layouts/partials/scripts.html11
1 files changed, 7 insertions, 4 deletions
diff --git a/layouts/partials/scripts.html b/layouts/partials/scripts.html
index 1a284ee..2cfa68a 100644
--- a/layouts/partials/scripts.html
+++ b/layouts/partials/scripts.html
@@ -16,13 +16,16 @@
<script type="text/javascript" src="{{ "dist/even.min.js?v=2.7.2" | relURL }}"></script>
{{- if and (or .Params.mathjax (and .Site.Params.mathjax (ne .Params.mathjax false))) (or .IsPage .IsHome) }}
- <script type="text/javascript">
- window.MathJax = {
+ <script type="text/x-mathjax-config">
+ MathJax.Hub.Config({
+ {{ if or .Params.mathjaxEnableSingleDollar (and .Site.Params.mathjaxEnableSingleDollar (ne .Params.mathjaxEnableSingleDollar false)) -}}
+ tex2jax: {inlineMath: [['$','$'], ['\\(','\\)']]},
+ {{ end -}}
showProcessingMessages: false,
messageStyle: 'none'
- };
+ });
</script>
- <script async src='https://cdnjs.cloudflare.com/ajax/libs/mathjax/2.7.0/MathJax.js?config=TeX-MML-AM_CHTML'></script>
+ <script type="text/javascript" async src="https://cdnjs.cloudflare.com/ajax/libs/mathjax/2.7.2/MathJax.js?config=TeX-MML-AM_CHTML"></script>
{{- end }}
<!-- Analytics -->