all repos — searchix @ 05a32bda78911772cb8b09f37bacbcf851a4ddba

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

feat: default to combined search on root path

Alan Pearce
commit

05a32bda78911772cb8b09f37bacbcf851a4ddba

parent

0de558cbda214106f46d26ace622df5dbb3266fd

1 file changed, 4 insertions(+), 3 deletions(-)

changed files
M internal/components/page.templinternal/components/page.templ
@@ -29,7 +29,7 @@ <link
rel="search" type="application/opensearchdescription+xml" title={ "Searchix " + sourceNameAndType(nil) } - href={ string(joinPath("/all", "opensearch.xml")) } + href={ string(joinPath("opensearch.xml")) } /> for _, source := range tdata.Sources { <link
@@ -49,9 +49,9 @@ if tdata.Source == nil {
if tdata.SourceResult != nil || tdata.Query != "" { class="current" } - href="/all/search" + href="/" } else { - href={ joinPathQuery("/all/search", tdata.Query) } + href={ joinPathQuery("/", tdata.Query) } } >All</a> for _, source := range tdata.Sources {
@@ -71,6 +71,7 @@ { children... }
</main> <footer> Made by <a href="https://alanpearce.eu">Alan Pearce</a>. + <a href="https://git.sr.ht/~alanpearce/searchix">Source code</a> <a href="https://todo.sr.ht/~alanpearce/searchix">Report issues</a> </footer> </body>