diff options
author | tristor <tristor@gmail.com> | 2021-02-06 02:04:58 +0300 |
---|---|---|
committer | tristor <tristor@gmail.com> | 2021-02-06 03:05:27 +0300 |
commit | 5be334d049a4158a76c6d0117e64199323daaed1 (patch) | |
tree | f6920d40fa459de2cb4a260114f42d6fefce99f6 | |
parent | 4c748f2e02b2e6964c424ac5e40b807919c3418f (diff) |
This change reduces configurability, but that configurability would require significant refactoring. Instead, it ditches the default cdn.bootcss.com that hangs and replaces it with the MathJax recommendation of Cloudflare CDNJS. Additionally, it bumps the default version from 2.7.1 to 2.7.7, the last release in the 2.7 series.
-rw-r--r-- | layouts/partials/footer_mathjax.html | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/layouts/partials/footer_mathjax.html b/layouts/partials/footer_mathjax.html index 2bacfd6..5319ec7 100644 --- a/layouts/partials/footer_mathjax.html +++ b/layouts/partials/footer_mathjax.html @@ -1,4 +1,4 @@ {{ if and (not .Params.disable_mathjax) (or (in (string .Content) "\\") (in (string .Content) "$")) }} <script src="{{ "/js/math-code.js" | relURL }}"></script> - <script async src="{{ .Site.Params.MathJaxCDN | default "//cdn.bootcss.com" }}/mathjax/{{ .Site.Params.MathJaxVersion | default "2.7.1" }}/MathJax.js?config=TeX-MML-AM_CHTML"></script> + <script async src="https://cdnjs.cloudflare.com/ajax/libs/mathjax/2.7.7/MathJax.js?config=TeX-MML-AM_CHTML"></script> {{ end }}
\ No newline at end of file |