all repos — searchix @ 4698a97974ae82e7bd8592828c58294b222a58ff

Search engine for NixOS, nix-darwin, home-manager and NUR users

feat: enable sub-resource integrity for assets

Alan Pearce
commit

4698a97974ae82e7bd8592828c58294b222a58ff

parent

b02076363f979daa6ac313058eb140d1d67ce184

1 file changed, 7 insertions(+), 2 deletions(-)

changed files
M frontend/templates/index.gotmplfrontend/templates/index.gotmpl
@@ -4,8 +4,13 @@ <head>
<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 }}