aboutsummaryrefslogtreecommitdiff
path: root/templates
diff options
context:
space:
mode:
Diffstat (limited to 'templates')
-rw-r--r--templates/macros/head.html6
1 files changed, 6 insertions, 0 deletions
diff --git a/templates/macros/head.html b/templates/macros/head.html
index d778fce..880e005 100644
--- a/templates/macros/head.html
+++ b/templates/macros/head.html
@@ -95,7 +95,13 @@
{%- elif config.extra.search_library == "stork" %}
<script defer src="{{ get_url(path='abridge-bundle-stork.min.js', trailing_slash=false, cachebust=true) | safe }}"{%- if config.extra.integrity %} integrity="sha384-{{ get_file_hash(path='abridge-bundle-stork.min.js', sha_type=384, base64=true) | safe }}"{%- endif %}></script>
{%- else %}
+
+ {%- if config.extra.js_switcher %}
<script defer src="{{ get_url(path='abridge-bundle.min.js', trailing_slash=false, cachebust=true) | safe }}"{%- if config.extra.integrity %} integrity="sha384-{{ get_file_hash(path='abridge-bundle.min.js', sha_type=384, base64=true) | safe }}"{%- endif %}></script>
+ {%- else %}
+ <script defer src="{{ get_url(path='abridge.min.js', trailing_slash=false, cachebust=true) | safe }}"{%- if config.extra.integrity %} integrity="sha384-{{ get_file_hash(path='abridge.min.js', sha_type=384, base64=true) | safe }}"{%- endif %}></script>
+ {%- endif %}
+
{%- endif %}