Преглед на файлове

Merge pull request #385 from framasoft/opensearch-icon

Add Image on opensearch
Adam Tauber преди 9 години
родител
ревизия
c706bea788
променени са 3 файла, в които са добавени 3 реда и са изтрити 0 реда
  1. 1
    0
      searx/templates/courgette/opensearch.xml
  2. 1
    0
      searx/templates/default/opensearch.xml
  3. 1
    0
      searx/templates/oscar/opensearch.xml

+ 1
- 0
searx/templates/courgette/opensearch.xml Целия файл

@@ -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 Целия файл

@@ -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 Целия файл

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