From 6c195035966d1b1d2cac50f9aacc3617b3a0e475 Mon Sep 17 00:00:00 2001 From: Jieiku Date: Mon, 5 Aug 2024 18:07:12 -0700 Subject: simplify switching search library --- templates/base.html | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'templates/base.html') diff --git a/templates/base.html b/templates/base.html index 1604dbe..3096ac2 100644 --- a/templates/base.html +++ b/templates/base.html @@ -5,7 +5,7 @@ {%- if not i18n -%}{%- set i18n = load_data(path="themes/abridge/i18n/" ~ lang ~ ".toml", required=false) -%}{%- endif %} {%- set uglyurls = config.extra.uglyurls | default(value=false) -%} -{%- if config.extra.offline %}{% set uglyurls = true %}{% endif %} +{%- if config.extra.search_library %}{%- if config.extra.search_library == "offline" %}{% set uglyurls = true %}{% endif %}{% endif %} @@ -98,10 +98,10 @@
{%- endif %} -- cgit v1.3.1