Remove undeferred p5 related scripts from baseof.html

This commit is contained in:
Eryn Wells 2022-08-16 09:20:56 -07:00
parent b495d84c64
commit 45dc56631c

View file

@ -10,14 +10,6 @@
{{ partial "footer.html" . }}
</body>
{{ if and .IsPage .Params.is_p5js_sketch }}
<script src="{{ `scripts/p5-1.4.1.min.js` | absURL }}"></script>
<script src="{{ `scripts/sketch-utils.js` | absURL }}"></script>
{{ with .Resources.GetMatch "sketch.js" }}
<script src="{{ .RelPermalink }}"></script>
{{ end }}
{{ end }}
<script>
const bodyClasses = document.body.classList;
const systemDarkModeMatch = window.matchMedia('(prefers-color-scheme: dark)');