From 14bf9c5768d5f97739c933b9af0ccd493618dda0 Mon Sep 17 00:00:00 2001 From: tiennm99 Date: Fri, 15 May 2026 19:51:44 +0700 Subject: [PATCH] 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. --- themes/bonsai/layouts/themes/single.html | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/themes/bonsai/layouts/themes/single.html b/themes/bonsai/layouts/themes/single.html index bdb5ca4..62cae42 100644 --- a/themes/bonsai/layouts/themes/single.html +++ b/themes/bonsai/layouts/themes/single.html @@ -1,5 +1,6 @@ {{ define "head_extra" }} - +{{- $g := resources.Get "css/gallery.css" | resources.Minify | resources.Fingerprint "sha384" -}} + {{ end }} {{ define "main" }}