v0.2.0 #11

Merged
partisan merged 11 commits from work into main 2024-09-09 15:32:06 +00:00
Showing only changes of commit 14b4f3aaf5 - Show all commits

View file

@ -12,7 +12,7 @@ type OpenSearchDescription struct {
ShortName string `xml:"ShortName"`
Description string `xml:"Description"`
Tags string `xml:"Tags"`
URL URL `xml:"Url"`
URLs []URL `xml:"Url"`
}
type URL struct {
@ -28,9 +28,15 @@ func generateOpenSearchXML(config Config) {
ShortName: "Search Engine",
Description: "Search engine",
Tags: "search, engine",
URL: URL{
Type: "text/html",
Template: fmt.Sprintf("%s/search?q={searchTerms}", baseURL),
URLs: []URL{
{
Type: "text/html",
Template: fmt.Sprintf("%s/search?q={searchTerms}", baseURL),
},
{
Type: "application/x-suggestions+json",
Template: fmt.Sprintf("%s/suggestions?q={searchTerms}", baseURL),
},
},
}