diff options
Diffstat (limited to 'templates/macros/head.html')
| -rw-r--r-- | templates/macros/head.html | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/templates/macros/head.html b/templates/macros/head.html index 88c9781..648d170 100644 --- a/templates/macros/head.html +++ b/templates/macros/head.html @@ -113,6 +113,7 @@ <script defer src="{{ get_url(path=js_codecopy, trailing_slash=false, cachebust=true) | safe }}"{%- if config.extra.integrity | default(value=true) %} integrity="sha384-{{ get_hash(path=js_codecopy, sha_type=384, base64=true) | safe }}"{%- endif %}></script> {%- endif %} + {%- if config.build_search_index %} {%- if search_library == "tinysearch" %} <script defer type="module" src="{{ get_url(path='tinysearch.js', trailing_slash=false, cachebust=true) | safe }}"{%- if config.extra.integrity | default(value=true) %} integrity="sha384-{{ get_hash(path='tinysearch.js', sha_type=384, base64=true) | safe }}"{%- endif %}></script> {%- elif search_library == "stork" %} @@ -127,6 +128,7 @@ {%- endif %} {%- endif %} + {%- endif %} {%- endif %} |
