diff options
Diffstat (limited to 'frontend/templates')
-rw-r--r-- | frontend/templates/blocks/search.gotmpl | 8 | ||||
-rw-r--r-- | frontend/templates/index.gotmpl | 9 |
2 files changed, 14 insertions, 3 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 }} 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 }} |