diff options
| author | Jieiku | 2023-02-21 18:06:29 -0800 |
|---|---|---|
| committer | Jieiku | 2023-02-21 18:06:29 -0800 |
| commit | cfe23e2d8eb9d2b198b58b4ec5464b209189418f (patch) | |
| tree | 0a27a0f702edaf870825a8aa5b0d24541b35d5f5 /templates | |
| parent | dbe8c84a65ad2290c06fe8c1193f8d9563a9ab53 (diff) | |
| download | abridge-cfe23e2d8eb9d2b198b58b4ec5464b209189418f.tar.gz abridge-cfe23e2d8eb9d2b198b58b4ec5464b209189418f.tar.bz2 abridge-cfe23e2d8eb9d2b198b58b4ec5464b209189418f.zip | |
Add js Bundle option for Search Facade noswitcher
Diffstat (limited to 'templates')
| -rw-r--r-- | templates/macros/head.html | 6 |
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 %} |
