From 9d1eae17072b7abce0c49da859d4dd65cb43b6ba Mon Sep 17 00:00:00 2001 From: daudix Date: Tue, 6 Aug 2024 19:50:13 +0300 Subject: [PATCH] Fix search bar being present when search is disabled --- config.toml | 1 - templates/partials/nav.html | 16 +++++++++------- 2 files changed, 9 insertions(+), 8 deletions(-) diff --git a/config.toml b/config.toml index 347f002..0eacb1d 100644 --- a/config.toml +++ b/config.toml @@ -100,7 +100,6 @@ links = [ { url = "@/demo/index.md", name = "Demo" }, { url = "@/tricks/index.md", name = "Tricks" }, { url = "https://codeberg.org/daudix/duckquill", name = "Repo" }, - ] [extra.footer] diff --git a/templates/partials/nav.html b/templates/partials/nav.html index 5cad5f9..5a2498d 100644 --- a/templates/partials/nav.html +++ b/templates/partials/nav.html @@ -54,11 +54,13 @@ {%- endif %} -
- - -
-
+ {%- if config.build_search_index %} +
+ + +
+
+ {%- endif %}