about summary refs log tree commit diff stats
diff options
context:
space:
mode:
-rw-r--r--internal/components/page.templ4
1 files changed, 1 insertions, 3 deletions
diff --git a/internal/components/page.templ b/internal/components/page.templ
index 28bda38..4ba3741 100644
--- a/internal/components/page.templ
+++ b/internal/components/page.templ
@@ -46,9 +46,7 @@ templ Page(tdata TemplateData) {
 					<h1><a href="/">Searchix</a></h1>
 					<a
 						if tdata.Source == nil {
-							if tdata.Query != "" {
-								class="current"
-							}
+							class="current"
 							href="/"
 						} else {
 							href={ joinPathQuery("/", tdata.Query) }