about summary refs log tree commit diff stats
path: root/frontend
diff options
context:
space:
mode:
authorAlan Pearce2024-05-07 21:32:36 +0200
committerAlan Pearce2024-05-07 21:32:36 +0200
commit212e5cf6621c99e46dbb37c860dab8938968bb19 (patch)
treeabd06307e406290c17f453360e92dc6462f5533e /frontend
parent32c4f1ddd704984dad79ad059619b127dcc7de2f (diff)
downloadsearchix-212e5cf6621c99e46dbb37c860dab8938968bb19.tar.lz
searchix-212e5cf6621c99e46dbb37c860dab8938968bb19.tar.zst
searchix-212e5cf6621c99e46dbb37c860dab8938968bb19.zip
feat: search multiple sources
Diffstat (limited to 'frontend')
-rw-r--r--frontend/templates/blocks/search.gotmpl2
-rw-r--r--frontend/templates/index.gotmpl6
2 files changed, 4 insertions, 4 deletions
diff --git a/frontend/templates/blocks/search.gotmpl b/frontend/templates/blocks/search.gotmpl
index b03410c..a4f0ee5 100644
--- a/frontend/templates/blocks/search.gotmpl
+++ b/frontend/templates/blocks/search.gotmpl
@@ -2,7 +2,7 @@
 {{- template "js" . }}
 
 {{- define "main" }}
-  <form id="search" action="/options/{{ .Source }}/results">
+  <form id="search" action="results">
     <label for="query">{{ sourceName .Source }} option search</label>
     <fieldset>
       <input id="query" name="query" type="search" value="{{ .Query }}" />
diff --git a/frontend/templates/index.gotmpl b/frontend/templates/index.gotmpl
index d4a46da..c94330a 100644
--- a/frontend/templates/index.gotmpl
+++ b/frontend/templates/index.gotmpl
@@ -11,9 +11,9 @@
     <header>
       <nav>
         <h1><a href="/">Searchix</a></h1>
-        <a href="/search/nixos">NixOS</a>
-        <a href="/search/darwin">Darwin</a>
-        <a href="/search/home-manager">Home Manager</a>
+        <a href="/options/nixos/search">NixOS</a>
+        <a href="/options/darwin/search">Darwin</a>
+        <a href="/options/home-manager/search">Home Manager</a>
       </nav>
     </header>
     <main>