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:
tiennm99 committed 2026-05-15 19:51:44 +07:00
1 parent fc24b8cdfa
commit 14bf9c5768
1 file changed
+2 -1
+2 -1
View File
@@ -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" }}