1
0
mirror of https://github.com/cotes2020/jekyll-theme-chirpy.git synced 2025-06-07 08:07:51 +00:00

fix: avoid mathjax loading failure on page refresh (#2389)

This commit is contained in:
Cotes Chung 2025-05-05 11:55:48 +08:00 committed by GitHub
parent ada38aad96
commit 401e2af0f8
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -66,7 +66,7 @@
{% if page.math %}
<!-- MathJax -->
<script async src="{{ '/assets/js/data/mathjax.js' | relative_url }}"></script>
<script src="{{ '/assets/js/data/mathjax.js' | relative_url }}"></script>
<script async src="https://cdnjs.cloudflare.com/polyfill/v3/polyfill.min.js?features=es6"></script>
<script id="MathJax-script" async src="{{ site.data.origin[type].mathjax.js | relative_url }}"></script>
{% endif %}