diff options
author | Oscar Najera <hi@oscarnajera.com> | 2025-01-06 08:50:31 +0100 |
---|---|---|
committer | Oscar Najera <hi@oscarnajera.com> | 2025-01-06 08:50:31 +0100 |
commit | 1e3f2427d56b0a5fc286a365794ba9338caf985f (patch) | |
tree | 8a1dac87d9af6145cde2949651bdb9c29fa28615 /layouts/partials/head.html | |
parent | 63932c7be1ec12872f9409c5dfaf9bdfb0597620 (diff) | |
download | hugo-minimalist-theme-1e3f2427d56b0a5fc286a365794ba9338caf985f.tar.gz hugo-minimalist-theme-1e3f2427d56b0a5fc286a365794ba9338caf985f.tar.bz2 hugo-minimalist-theme-1e3f2427d56b0a5fc286a365794ba9338caf985f.zip |
load syntax highlight async
Diffstat (limited to 'layouts/partials/head.html')
-rw-r--r-- | layouts/partials/head.html | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/layouts/partials/head.html b/layouts/partials/head.html index 659165a..2e3057d 100644 --- a/layouts/partials/head.html +++ b/layouts/partials/head.html @@ -48,4 +48,14 @@ async src="https://cdn.jsdelivr.net/npm/mathjax@3/es5/tex-chtml.js" ></script> + + {{ with resources.Get "js/loads.js" | resources.Minify | fingerprint }} + <script + async + src="{{ .RelPermalink }}" + integrity="{{ .Data.Integrity }}" + crossorigin="anonymous" + referrerpolicy="no-referrer" + ></script> + {{ end }} </head> |