mirror of
https://github.com/tiennm99/HugoBlox-kit.git
synced 2026-10-12 22:14:08 +00:00
refactor(js): use relative URL for Mathjax config JS
Works around potential multi-host asset Permalink bug in Hugo. See #751 Close #757
This commit is contained in:
1 parent
fa5de9234d
commit
ab20e8f9f2
1 file changed
+1
-1
@@ -4,7 +4,7 @@
|
||||
{{ if or .Params.math .Site.Params.math }}
|
||||
{{ $mathjax_config := resources.Get "js/mathjax-config.js" }}
|
||||
{{ $secureJS := $mathjax_config | resources.Fingerprint "sha512" }}
|
||||
<script src="{{ $secureJS.Permalink }}" integrity="{{ $secureJS.Data.Integrity }}"></script>
|
||||
<script src="{{ $secureJS.RelPermalink }}" integrity="{{ $secureJS.Data.Integrity }}"></script>
|
||||
{{ end }}
|
||||
|
||||
{{/* Attempt to load local vendor JS, otherwise load from CDN. */}}
|
||||
|
||||
Reference in new issue
Block a user