aboutsummaryrefslogtreecommitdiff
path: root/templates/tinysearch_json.html
diff options
context:
space:
mode:
Diffstat (limited to 'templates/tinysearch_json.html')
-rw-r--r--templates/tinysearch_json.html5
1 files changed, 4 insertions, 1 deletions
diff --git a/templates/tinysearch_json.html b/templates/tinysearch_json.html
index 638833f..37f83a1 100644
--- a/templates/tinysearch_json.html
+++ b/templates/tinysearch_json.html
@@ -1,2 +1,5 @@
{%- import "macros/create_tinysearch_json.html" as create_tinysearch_json -%}
-[{{ create_tinysearch_json::from_section(section="_index.md") }}] \ No newline at end of file
+
+{%- if config.extra.search_library %}{%- if config.extra.search_library == "tinysearch" %}
+[{{ create_tinysearch_json::from_section(section="_index.md", config=config) }}]
+{%- endif %}{%- endif %} \ No newline at end of file