all repos — searchix @ 9af2747a1168f41b39b446bfe3ecab6c7b25ff99

Search engine for NixOS, nix-darwin, home-manager and NUR users

fix: js error due to missing class on nav menu item
Alan Pearce alan@alanpearce.eu
Wed, 12 Mar 2025 15:27:04 +0100
commit

9af2747a1168f41b39b446bfe3ecab6c7b25ff99

parent

4caa86fea82c1d82ecdb6e11a44e9f63d4094423

1 files changed, 1 insertions(+), 3 deletions(-)

jump to
M internal/components/page.templinternal/components/page.templ
@@ -46,9 +46,7 @@ <nav> 					<h1><a href="/">Searchix</a></h1>
 					<a
 						if tdata.Source == nil {
-							if tdata.Query != "" {
-								class="current"
-							}
+							class="current"
 							href="/"
 						} else {
 							href={ joinPathQuery("/", tdata.Query) }