aboutsummaryrefslogtreecommitdiff
path: root/templates/macros/head.html
diff options
context:
space:
mode:
Diffstat (limited to 'templates/macros/head.html')
-rw-r--r--templates/macros/head.html4
1 files changed, 4 insertions, 0 deletions
diff --git a/templates/macros/head.html b/templates/macros/head.html
index 2c85f16..673954b 100644
--- a/templates/macros/head.html
+++ b/templates/macros/head.html
@@ -95,7 +95,11 @@
{%- if config.extra.js_bundle %}
+ {%- if config.build_search_index %}
<script defer src="{{ get_url(path='js/abridge.min.js', trailing_slash=false, cachebust=true) | safe }}"{%- if config.extra.integrity | default(value=true) %} integrity="sha384-{{ get_hash(path='js/abridge.min.js', sha_type=384, base64=true) | safe }}"{%- endif %}></script>
+ {%- else %}
+ <script defer src="{{ get_url(path='js/abridge-nosearch.min.js', trailing_slash=false, cachebust=true) | safe }}"{%- if config.extra.integrity | default(value=true) %} integrity="sha384-{{ get_hash(path='js/abridge-nosearch.min.js', sha_type=384, base64=true) | safe }}"{%- endif %}></script>
+ {%- endif %}
{%- if config.build_search_index %}
{%- if search_library == "elasticlunr" %}