mirror of
https://github.com/tiennm99/iammiti99.git
synced 2026-10-15 20:15:46 +00:00
refactor(assets): add fingerprint + SRI to gallery.css resource
Updates gallery.css resource reference to use Hugo resources API with fingerprinting and SRI (Subresource Integrity) for security and cache-busting. Improves security posture and cache effectiveness.
This commit is contained in:
1 parent
fc24b8cdfa
commit
14bf9c5768
1 file changed
+2
-1
@@ -1,5 +1,6 @@
|
||||
{{ define "head_extra" }}
|
||||
<link rel="stylesheet" href="{{ `css/gallery.css` | relURL }}" />
|
||||
{{- $g := resources.Get "css/gallery.css" | resources.Minify | resources.Fingerprint "sha384" -}}
|
||||
<link rel="stylesheet" href="{{ $g.RelPermalink }}" integrity="{{ $g.Data.Integrity }}" crossorigin="anonymous" />
|
||||
{{ end }}
|
||||
|
||||
{{ define "main" }}
|
||||
|
||||
Reference in new issue
Block a user