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/opensearch.xml.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/opensearch.xml.gotmpl')
-rw-r--r-- | frontend/templates/opensearch.xml.gotmpl | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/frontend/templates/opensearch.xml.gotmpl b/frontend/templates/opensearch.xml.gotmpl index 8d978ea..c761fd4 100644 --- a/frontend/templates/opensearch.xml.gotmpl +++ b/frontend/templates/opensearch.xml.gotmpl @@ -2,15 +2,15 @@ xmlns="http://a9.com/-/spec/opensearch/1.1/" xmlns:moz="http://www.mozilla.org/2006/browser/search/" > - <ShortName>Searchix {{ .Source.Name }}</ShortName> - <LongName>Search {{ .Source.Name }} options with Searchix</LongName> - <Description>Search options {{ .Source.Name }}</Description> + <ShortName>Searchix {{ sourceNameAndType .Source }}</ShortName> + <LongName>Search {{ sourceNameAndType .Source }} with Searchix</LongName> + <Description>Search {{ sourceNameAndType .Source }}</Description> <Url type="text/html" method="get" - template="{{ .BaseURL }}/options/{{ .Source.Key }}/search?query={searchTerms}&from=opensearch" + template="{{ .BaseURL }}/{{ .Source.ImporterType }}/{{ .Source.Key }}/search?query={searchTerms}&from=opensearch" /> <moz:SearchForm - >{{ .BaseURL }}/options/{{ .Source.Key }}/search</moz:SearchForm + >{{ .BaseURL }}/{{ .Source.ImporterType }}/{{ .Source.Key }}/search</moz:SearchForm > </OpenSearchDescription> |