[PATCH] Add and link Opensearch spec
Export this patch
---
static/opensearch.xml | 8 ++++++++
templates/head.html | 1 +
2 files changed, 9 insertions(+)
create mode 100644 static/opensearch.xml
diff --git a/static/opensearch.xml b/static/opensearch.xml
new file mode 100644
index 0000000..44c5f9e
--- /dev/null
+++ b/static/opensearch.xml
@@ -0,0 +1,8 @@
+
+<OpenSearchDescription xmlns="http://a9.com/-/spec/opensearch/1.1/">
+ <ShortName>searchhut</ShortName>
+ <Description></Description>
+ <InputEncoding>UTF-8</InputEncoding>
+ <Image width="16" height="16" type="image/x-icon">https://searchhut.org/static/favicon.png</Image>
+ <Url type="text/html" method="get" template="https://searchhut.org/search/?q={searchTerms}"/>
+</OpenSearchDescription>
\ No newline at end of file
diff --git a/templates/head.html b/templates/head.html
index f6b3285..8b3fad8 100644
--- a/templates/head.html
+++ b/templates/head.html
@@ -4,4 +4,5 @@
<meta name="viewport" content="width=device-width, initial-scale=1" />
<link rel="stylesheet" href="/static/main.css" />
<link rel="shortcut icon" type="image/png" href="/static/favicon.png" />
+<link rel="search" type="application/opensearchdescription+xml" title="searchhut" href="/static/opensearch.xml">
<title>{{.Title}}</title>
--
2.37.0