aboutsummaryrefslogtreecommitdiff
path: root/templates
diff options
context:
space:
mode:
Diffstat (limited to 'templates')
-rw-r--r--templates/macros/head.html4
1 files changed, 2 insertions, 2 deletions
diff --git a/templates/macros/head.html b/templates/macros/head.html
index 82e7100..f893ef3 100644
--- a/templates/macros/head.html
+++ b/templates/macros/head.html
@@ -18,10 +18,10 @@
{%- if config.build_search_index %}
{%- if config.extra.js_search_index %}
- <script defer src="{{ get_url(path=config.extra.js_search_index, trailing_slash=false, cachebust=true) | safe }}"></script>
+ <script defer src="{{ get_url(path=config.extra.js_search_index, trailing_slash=false, cachebust=true) | safe }}" integrity="sha384-{{ get_file_hash(path=config.extra.js_search_index, sha_type=384, base64=true) | safe }}"></script>
{%- endif %}
{%- if config.extra.js_search %}
- <script defer src="{{ get_url(path=config.extra.js_search, trailing_slash=false, cachebust=true) | safe }}"></script>
+ <script defer src="{{ get_url(path=config.extra.js_search, trailing_slash=false, cachebust=true) | safe }}" integrity="sha384-{{ get_file_hash(path=config.extra.js_search, sha_type=384, base64=true) | safe }}"></script>
{%- endif %}
{%- endif %}