all repos — searchix @ 05e61978906a08132c4340a5f9ae518134dd0fa9

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

feat: support searching packages

Alan Pearce
commit

05e61978906a08132c4340a5f9ae518134dd0fa9

parent

42611df8133fc88bac5947a65a18fa095d68a951

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

changed files
M frontend/templates/index.gotmplfrontend/templates/index.gotmpl
@@ -13,8 +13,8 @@ {{- range $key, $value := .Sources }}
<link rel="search" type="application/opensearchdescription+xml" - title="Searchix {{ $value.Name }}" - href="/options/{{ $key }}/opensearch.xml" + title="Searchix {{ sourceNameAndType $value }}" + href="/{{ .Importer }}/{{ $key }}/opensearch.xml" /> {{- end }} </head>
@@ -25,7 +25,7 @@ <h1><a href="/">Searchix</a></h1>
{{- range $key, $value := .Sources }} <a {{ if eq $.Source.Name $value.Name }}class="current"{{ end }} - href="/options/{{ $key }}/search{{ and $.Query (printf "?query=%s" $.Query) }}" + href="/{{ .Importer }}/{{ $key }}/search{{ and $.Query (printf "?query=%s" $.Query) }}" > {{- $value.Name -}} </a>