Remove the SRI stuff; use md5 instead of sha512 for fingerprinting since it is shorter

This commit is contained in:
Eryn Wells 2022-11-12 07:49:33 -08:00
parent fb1b4ccab3
commit 6842511b10
8 changed files with 13 additions and 13 deletions

View file

@ -9,16 +9,16 @@
{{ define "scripts" }}
{{- if .HasShortcode "figures/railroad" -}}
{{- with partial "resources/railroad_utils.html" . -}}
<script defer type="module" src="{{ .RelPermalink }}" integrity="{{ .Data.Integrity }}"></script>
<script defer type="module" src="{{ .RelPermalink }}"></script>
{{- end -}}
{{- end -}}
{{- if .HasShortcode "figures/p5" -}}
{{- with partial "secure_asset.html" "scripts/lib/p5-1.5.0.js" -}}
<script defer src="{{ .Secure.Permalink }}" integrity="{{ .Secure.Data.Integrity }}"></script>
<script defer src="{{ .Secure.Permalink }}"></script>
{{- end -}}
{{- with partial "secure_asset.html" "scripts/sketch-utils.js" -}}
<script defer src="{{ .Secure.Permalink }}" integrity="{{ .Secure.Data.Integrity }}"></script>
<script defer src="{{ .Secure.Permalink }}"></script>
{{- end -}}
{{- end -}}