diff options
author | Alan Pearce | 2024-05-30 13:54:29 +0200 |
---|---|---|
committer | Alan Pearce | 2024-05-30 13:54:29 +0200 |
commit | 4698a97974ae82e7bd8592828c58294b222a58ff (patch) | |
tree | fc7d6357534efffc69301fb01c6e04143288dbec /frontend/templates/index.gotmpl | |
parent | b02076363f979daa6ac313058eb140d1d67ce184 (diff) | |
download | searchix-4698a97974ae82e7bd8592828c58294b222a58ff.tar.lz searchix-4698a97974ae82e7bd8592828c58294b222a58ff.tar.zst searchix-4698a97974ae82e7bd8592828c58294b222a58ff.zip |
feat: enable sub-resource integrity for assets
Diffstat (limited to 'frontend/templates/index.gotmpl')
-rw-r--r-- | frontend/templates/index.gotmpl | 9 |
1 files changed, 7 insertions, 2 deletions
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 @@ <meta charset="utf-8" /> <meta name="viewport" content="width=device-width, initial-scale=1" /> <title>Searchix</title> - <link href="/static/base.css" rel="stylesheet" /> - <link href="/static/style.css" rel="stylesheet" /> + {{- range .Assets.Stylesheets }} + <link + href="{{ .URL }}" + rel="stylesheet" + integrity="sha256-{{ .Base64SHA256 }}" + /> + {{- end }} {{ block "head" . }} {{ end }} {{ .ExtraHeadHTML }} |