about summary refs log tree commit diff stats
path: root/frontend/templates/index.gotmpl
diff options
context:
space:
mode:
Diffstat (limited to 'frontend/templates/index.gotmpl')
-rw-r--r--frontend/templates/index.gotmpl10
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>