diff options
Diffstat (limited to 'layouts/partials/third-party/mathjax.html')
-rw-r--r-- | layouts/partials/third-party/mathjax.html | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/layouts/partials/third-party/mathjax.html b/layouts/partials/third-party/mathjax.html index ad918f4..e221f46 100644 --- a/layouts/partials/third-party/mathjax.html +++ b/layouts/partials/third-party/mathjax.html @@ -1,3 +1,5 @@ +{{- $src := partial "utils/lib.html" (dict "type" "mathjax") -}} + <script> if (typeof MathJax === 'undefined') { window.MathJax = { @@ -18,8 +20,8 @@ } }; (function() { - var script = document.createElement('script'); - script.src = 'https://cdn.jsdelivr.net/npm/mathjax@3.1.2/es5/tex-mml-chtml.js'; + const script = document.createElement('script'); + script.src = '{{ $src }}'; script.defer = true; document.head.appendChild(script); })(); |