aboutsummaryrefslogtreecommitdiff
path: root/templates/partials/head.html
diff options
context:
space:
mode:
Diffstat (limited to 'templates/partials/head.html')
-rw-r--r--templates/partials/head.html4
1 files changed, 2 insertions, 2 deletions
diff --git a/templates/partials/head.html b/templates/partials/head.html
index 98d2382..1b95cc8 100644
--- a/templates/partials/head.html
+++ b/templates/partials/head.html
@@ -1,7 +1,7 @@
{#- Theme Switcher Button to toggle between dark/light #}
{%- set integrity = config.extra.integrity | default(value=true) -%}
- {%- if config.extra.offline %}{% set integrity = false %}{% endif %}
+ {%- if config.extra.search_library %}{%- if config.extra.search_library == "offline" %}{% set integrity = false %}{% endif %}{% endif %}
{%- if config.extra.js_switcher | default(value=true) %}
{%- set js_theme="js/theme.min.js" %}
@@ -90,7 +90,7 @@
{#- Style Sheets Preload #}
{%- set integrity = config.extra.integrity | default(value=true) -%}
- {%- if config.extra.offline %}{% set integrity = false %}{% endif %}
+ {%- if config.extra.search_library %}{%- if config.extra.search_library == "offline" %}{% set integrity = false %}{% endif %}{% endif %}
{%- if config.extra.fonts %}{%- for i in config.extra.fonts %}
{%- if i.url is matching("^http[s]?://") %}