diff options
author | Alan Pearce | 2024-05-07 21:32:36 +0200 |
---|---|---|
committer | Alan Pearce | 2024-05-07 21:32:36 +0200 |
commit | 212e5cf6621c99e46dbb37c860dab8938968bb19 (patch) | |
tree | abd06307e406290c17f453360e92dc6462f5533e /frontend | |
parent | 32c4f1ddd704984dad79ad059619b127dcc7de2f (diff) | |
download | searchix-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.gotmpl | 2 | ||||
-rw-r--r-- | frontend/templates/index.gotmpl | 6 |
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> |