about summary refs log tree commit diff stats
diff options
context:
space:
mode:
-rw-r--r--frontend/templates/index.gotmpl6
1 files changed, 5 insertions, 1 deletions
diff --git a/frontend/templates/index.gotmpl b/frontend/templates/index.gotmpl
index b46428a..c5981b3 100644
--- a/frontend/templates/index.gotmpl
+++ b/frontend/templates/index.gotmpl
@@ -12,7 +12,11 @@
       <nav>
         <h1><a href="/">Searchix</a></h1>
         {{- range $key, $value := .Sources }}
-          <a href="/options/{{ $key }}/search">{{ $value.Name }}</a>
+          <a
+            {{ if eq $.Source.Name $value.Name }}class="current"{{ end }}
+            href="/options/{{ $key }}/search"
+            >{{ $value.Name }}</a
+          >
         {{- end }}
       </nav>
     </header>