Get all the fingerprinting done!

- Add partials in the resources folder for each of the major resources of my site
- Consolidate .css and .js files via resources.Concat where possible
This commit is contained in:
Eryn Wells 2022-11-08 17:45:38 -08:00
parent d0b223fa33
commit 294fa8343b
14 changed files with 58 additions and 39 deletions

View file

@ -1,5 +1,5 @@
{{ with partial "secure_asset.html" "scripts/lib/railroad.js" }}
import rr from "{{ .Secure.RelPermalink }}";
{{ with resources.Get "scripts/lib/railroad.js" | fingerprint "sha512" }}
import rr from "{{ .RelPermalink }}";
{{ else }}
{{ errorf "Unable to get railroad.js resource" }}
{{ end }}