From e326d4ddb03a2736c6b9a5c41b9441afa8a37053 Mon Sep 17 00:00:00 2001 From: Jieiku Date: Wed, 26 Jul 2023 14:58:47 -0700 Subject: config value optional --- templates/macros/head.html | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'templates/macros') 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 %} {%- endif %} -- cgit v1.3.1