diff options
Diffstat (limited to 'layouts/partials/scripts.html')
-rw-r--r-- | layouts/partials/scripts.html | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/layouts/partials/scripts.html b/layouts/partials/scripts.html index 89c087a..3168f1d 100644 --- a/layouts/partials/scripts.html +++ b/layouts/partials/scripts.html @@ -12,14 +12,14 @@ <script type="text/javascript" src="{{ "dist/even.min.js?v=3.0.0" | relURL }}"></script> {{- if and (or .Params.mathjax (and .Site.Params.mathjax (ne .Params.mathjax false))) (or .IsPage .IsHome) }} - <script type="text/x-mathjax-config"> - MathJax.Hub.Config({ + <script type="text/javascript"> + window.MathJax = { {{ if or .Params.mathjaxEnableSingleDollar (and .Site.Params.mathjaxEnableSingleDollar (ne .Params.mathjaxEnableSingleDollar false)) -}} tex2jax: {inlineMath: [['$','$'], ['\\(','\\)']]}, {{ end -}} showProcessingMessages: false, messageStyle: 'none' - }); + }; </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 }} |