aboutsummaryrefslogtreecommitdiff
path: root/templates
diff options
context:
space:
mode:
authorJieiku2023-07-26 14:58:47 -0700
committerJieiku2023-07-26 14:58:47 -0700
commite326d4ddb03a2736c6b9a5c41b9441afa8a37053 (patch)
tree910ddaeec48faf8d3410749d5e1827446148cde1 /templates
parent15ed680b4f7e1540fb09360dbd755f27403364f0 (diff)
downloadabridge-e326d4ddb03a2736c6b9a5c41b9441afa8a37053.tar.gz
abridge-e326d4ddb03a2736c6b9a5c41b9441afa8a37053.tar.bz2
abridge-e326d4ddb03a2736c6b9a5c41b9441afa8a37053.zip
config value optional
Diffstat (limited to 'templates')
-rw-r--r--templates/macros/head.html3
1 files changed, 1 insertions, 2 deletions
diff --git a/templates/macros/head.html b/templates/macros/head.html
index 603c341..35afa5b 100644
--- a/templates/macros/head.html
+++ b/templates/macros/head.html
@@ -3,10 +3,9 @@
{%- if config.extra.js_switcher | default(value=true) %}
{%- set js_theme=config.extra.js_theme | default(value="") -%}
{%- if not js_theme %}
+ {%- set js_theme="js/theme.min.js" -%}
{%- if config.extra.js_switcher_default %}{%- if config.extra.js_switcher_default == "light" %}
{%- set js_theme="js/theme_light.min.js" -%}
- {%- else %}
- {%- set js_theme="js/theme.min.js" -%}
{%- endif %}{%- endif %}
<script src="{{ get_url(path=js_theme, trailing_slash=false) | safe }}"{%- if config.extra.integrity | default(value=true) %} integrity="sha384-{{ get_hash(path=js_theme, sha_type=384, base64=true) | safe }}"{%- endif %}></script>
{%- endif %}