diff options
author | Alan Pearce | 2024-05-15 20:17:06 +0200 |
---|---|---|
committer | Alan Pearce | 2024-05-15 20:19:39 +0200 |
commit | 5521173ea0e05bda93096b51f67c5e813cb1d87e (patch) | |
tree | 79f066b3396b19f1b76a1e544a359b9b4088df82 /frontend/templates/opensearch.xml.gotmpl | |
parent | 9437f522c2ed21950acde884cafc369ca45f4b7b (diff) | |
download | searchix-5521173ea0e05bda93096b51f67c5e813cb1d87e.tar.lz searchix-5521173ea0e05bda93096b51f67c5e813cb1d87e.tar.zst searchix-5521173ea0e05bda93096b51f67c5e813cb1d87e.zip |
feat: add browser search engines via opensearch description
https://developer.mozilla.org/en-US/docs/Web/OpenSearch
Diffstat (limited to 'frontend/templates/opensearch.xml.gotmpl')
-rw-r--r-- | frontend/templates/opensearch.xml.gotmpl | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/frontend/templates/opensearch.xml.gotmpl b/frontend/templates/opensearch.xml.gotmpl new file mode 100644 index 0000000..8d978ea --- /dev/null +++ b/frontend/templates/opensearch.xml.gotmpl @@ -0,0 +1,16 @@ +<OpenSearchDescription + 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> + <Url + type="text/html" + method="get" + template="{{ .BaseURL }}/options/{{ .Source.Key }}/search?query={searchTerms}&from=opensearch" + /> + <moz:SearchForm + >{{ .BaseURL }}/options/{{ .Source.Key }}/search</moz:SearchForm + > +</OpenSearchDescription> |