Browse Source

Merge pull request #385 from framasoft/opensearch-icon

Add Image on opensearch
Adam Tauber 9 years ago
parent
commit
c706bea788

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

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

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

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

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

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