diff options
author | Alan Pearce | 2024-05-17 14:06:06 +0200 |
---|---|---|
committer | Alan Pearce | 2024-05-17 14:06:06 +0200 |
commit | 05e61978906a08132c4340a5f9ae518134dd0fa9 (patch) | |
tree | 0ab5e550a1fe5aaf560459c40eccfdc00e298515 /frontend/templates/index.gotmpl | |
parent | 42611df8133fc88bac5947a65a18fa095d68a951 (diff) | |
download | searchix-05e61978906a08132c4340a5f9ae518134dd0fa9.tar.lz searchix-05e61978906a08132c4340a5f9ae518134dd0fa9.tar.zst searchix-05e61978906a08132c4340a5f9ae518134dd0fa9.zip |
feat: support searching packages
Diffstat (limited to 'frontend/templates/index.gotmpl')
-rw-r--r-- | frontend/templates/index.gotmpl | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/frontend/templates/index.gotmpl b/frontend/templates/index.gotmpl index 90f875b..0211a5b 100644 --- a/frontend/templates/index.gotmpl +++ b/frontend/templates/index.gotmpl @@ -13,8 +13,8 @@ <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 @@ {{- 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> |