Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/peaceiris/hugo-theme-iris.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorShohei Ueda <30958501+peaceiris@users.noreply.github.com>2022-04-24 06:20:18 +0300
committerGitHub <noreply@github.com>2022-04-24 06:20:18 +0300
commit28c1165f1761bd8646434148634bc75cf4d066b0 (patch)
tree231678389c02068d4e3e23521de84908b488958f /layouts
parent8f2273936b3b2bb054c4020f18fdc2b9564dafb6 (diff)
feat: manage mathjax with npm (#512)
Diffstat (limited to 'layouts')
-rw-r--r--layouts/partials/mathjax.html2
1 files changed, 1 insertions, 1 deletions
diff --git a/layouts/partials/mathjax.html b/layouts/partials/mathjax.html
index 72887dca..f3469402 100644
--- a/layouts/partials/mathjax.html
+++ b/layouts/partials/mathjax.html
@@ -6,6 +6,6 @@
};
</script>
-{{ $js := resources.GetRemote "https://cdn.jsdelivr.net/npm/mathjax@3.2.0/es5/tex-mml-chtml.js" }}
+{{ $js := resources.Get "mathjax/es5/tex-mml-chtml.js" }}
{{ $secureJS := $js | resources.Fingerprint "sha512" }}
<script defer type="text/javascript" id="MathJax-script" src="{{ $secureJS.Permalink }}" integrity="{{ $secureJS.Data.Integrity }}"></script>