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/index.html | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'templates/index.html') diff --git a/templates/index.html b/templates/index.html index 0b1e83f..802f328 100644 --- a/templates/index.html +++ b/templates/index.html @@ -5,7 +5,8 @@ This Template can also be used directly for the index eg: example.com/ or as the {%- extends "base.html" %} {%- 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 %} + {%- block seo %} {{- super() }} -- cgit v1.3.1