Move a bunch of scripts and CSS to assets so they can be processed with Hugo Pipes

Use Pipes to fingerprint and add SLI information to <script> and <link> tags.
This commit is contained in:
Eryn Wells 2022-11-07 08:35:48 -08:00
parent f8174ab27c
commit 94ea8068c9
10 changed files with 106858 additions and 4 deletions

View file

@ -0,0 +1,7 @@
function getInlineSketchWidth() {
return getComputedStyle(document.documentElement).getPropertyValue("--body-width");
}
function convertRemToPx(rem) {
return rem * parseFloat(getComputedStyle(document.documentElement).fontSize);
}