Browse Source

Add Image on opensearch

Luc Didry 9 years ago
parent
commit
57e618edf7

+ 1 - 0
searx/templates/courgette/opensearch.xml

@@ -3,6 +3,7 @@
   <ShortName>searx</ShortName>
   <Description>Search searx</Description>
   <InputEncoding>UTF-8</InputEncoding>
+  <Image>{{ host }}{{ url_for('static', filename='img/favicon.png') | replace("/", "", 1) }}</Image>
   <LongName>searx metasearch</LongName>
   {% if opensearch_method == 'get' %}
     <Url type="text/html" method="get" template="{{ host }}search?q={searchTerms}"/>

+ 1 - 0
searx/templates/default/opensearch.xml

@@ -3,6 +3,7 @@
   <ShortName>searx</ShortName>
   <Description>Search searx</Description>
   <InputEncoding>UTF-8</InputEncoding>
+  <Image>{{ host }}{{ url_for('static', filename='img/favicon.png') | replace("/", "", 1) }}</Image>
   <LongName>searx metasearch</LongName>
   {% if opensearch_method == 'get' %}
     <Url type="text/html" method="get" template="{{ host }}search?q={searchTerms}"/>

+ 1 - 0
searx/templates/oscar/opensearch.xml

@@ -3,6 +3,7 @@
   <ShortName>searx</ShortName>
   <Description>Search searx</Description>
   <InputEncoding>UTF-8</InputEncoding>
+  <Image>{{ host }}{{ url_for('static', filename='img/favicon.png') | replace("/", "", 1) }}</Image>
   <LongName>searx metasearch</LongName>
   {% if opensearch_method == 'get' %}
     <Url type="text/html" method="get" template="{{ host }}search?q={searchTerms}"/>