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:
parent
f8174ab27c
commit
94ea8068c9
10 changed files with 106858 additions and 4 deletions
7
assets/scripts/sketch-utils.js
Normal file
7
assets/scripts/sketch-utils.js
Normal file
|
@ -0,0 +1,7 @@
|
|||
function getInlineSketchWidth() {
|
||||
return getComputedStyle(document.documentElement).getPropertyValue("--body-width");
|
||||
}
|
||||
|
||||
function convertRemToPx(rem) {
|
||||
return rem * parseFloat(getComputedStyle(document.documentElement).fontSize);
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue