feat: add browser search engines via opensearch description https://developer.mozilla.org/en-US/docs/Web/OpenSearch
1 file changed, 9 insertions(+), 1 deletion(-)
changed files
M frontend/templates/index.gotmpl → frontend/templates/index.gotmpl
@@ -6,9 +6,17 @@ <meta name="viewport" content="width=device-width, initial-scale=1" /> <title>Searchix</title> <link href="/static/base.css" rel="stylesheet" /> <link href="/static/style.css" rel="stylesheet" /> - {{ block "js" . }} + {{ block "head" . }} {{ end }} {{ .ExtraHeadHTML }} + {{- range $key, $value := .Sources }} + <link + rel="search" + type="application/opensearchdescription+xml" + title="Searchix {{ $value.Name }}" + href="/options/{{ $key }}/opensearch.xml" + /> + {{- end }} </head> <body> <header>