Bläddra i källkod

Merge pull request #385 from framasoft/opensearch-icon

Add Image on opensearch
Adam Tauber 9 år sedan
förälder
incheckning
c706bea788

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

@@ -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 Visa fil

@@ -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 Visa fil

@@ -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}"/>