From 4698a97974ae82e7bd8592828c58294b222a58ff Mon Sep 17 00:00:00 2001 From: Alan Pearce Date: Thu, 30 May 2024 13:54:29 +0200 Subject: feat: enable sub-resource integrity for assets --- frontend/templates/blocks/search.gotmpl | 8 +++++++- frontend/templates/index.gotmpl | 9 +++++++-- 2 files changed, 14 insertions(+), 3 deletions(-) (limited to 'frontend/templates') diff --git a/frontend/templates/blocks/search.gotmpl b/frontend/templates/blocks/search.gotmpl index 1be001a..9320376 100644 --- a/frontend/templates/blocks/search.gotmpl +++ b/frontend/templates/blocks/search.gotmpl @@ -22,5 +22,11 @@ {{- end }} {{- define "head" }} - + {{- with (index .Assets.Scripts "static/search.js") }} + + {{- end }} {{- end }} diff --git a/frontend/templates/index.gotmpl b/frontend/templates/index.gotmpl index ee37c0f..7732dc8 100644 --- a/frontend/templates/index.gotmpl +++ b/frontend/templates/index.gotmpl @@ -4,8 +4,13 @@