about summary refs log tree commit diff stats
path: root/frontend/templates/blocks/search.gotmpl
diff options
context:
space:
mode:
Diffstat (limited to 'frontend/templates/blocks/search.gotmpl')
-rw-r--r--frontend/templates/blocks/search.gotmpl8
1 files changed, 7 insertions, 1 deletions
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" }}
-  <script src="/static/search.js" defer></script>
+  {{- with (index .Assets.Scripts "static/search.js") }}
+    <script
+      src="{{ .URL }}"
+      defer
+      integrity="sha256-{{ .Base64SHA256 }}"
+    ></script>
+  {{- end }}
 {{- end }}