From 7b9c68a26e662a5a23ac23a192255d1aa691bea5 Mon Sep 17 00:00:00 2001 From: eugenesvk Date: Tue, 2 May 2023 23:21:27 +0700 Subject: Allow disabling search library if config search_library is set to false, it should stop loading search scripts --- templates/macros/head.html | 2 ++ 1 file changed, 2 insertions(+) (limited to 'templates/macros/head.html') diff --git a/templates/macros/head.html b/templates/macros/head.html index 88c9781..648d170 100644 --- a/templates/macros/head.html +++ b/templates/macros/head.html @@ -113,6 +113,7 @@ {%- endif %} + {%- if config.build_search_index %} {%- if search_library == "tinysearch" %} {%- elif search_library == "stork" %} @@ -127,6 +128,7 @@ {%- endif %} {%- endif %} + {%- endif %} {%- endif %} -- cgit v1.3.1