Przeglądaj źródła

Add Image on opensearch

Luc Didry 9 lat temu
rodzic
commit
57e618edf7

+ 1
- 0
searx/templates/courgette/opensearch.xml Wyświetl plik

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

+ 1
- 0
searx/templates/default/opensearch.xml Wyświetl plik

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

+ 1
- 0
searx/templates/oscar/opensearch.xml Wyświetl plik

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