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/index.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/index.gotmpl')
-rw-r--r-- | frontend/templates/index.gotmpl | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/frontend/templates/index.gotmpl b/frontend/templates/index.gotmpl index 6db4cc2..90f875b 100644 --- a/frontend/templates/index.gotmpl +++ b/frontend/templates/index.gotmpl @@ -6,9 +6,17 @@ <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> |