Ver código fonte

Merge pull request #1066 from MrPetovan/issue/fix-favicon-paths

[fix] Missing favicon images in oscar and simple themes
Adam Tauber 7 anos atrás
pai
commit
b34124fd8a

+ 1
- 1
searx/templates/oscar/macros.html Ver arquivo

5
 
5
 
6
 <!-- Draw favicon -->
6
 <!-- Draw favicon -->
7
 {% macro draw_favicon(favicon) -%}
7
 {% macro draw_favicon(favicon) -%}
8
-    <img width="32" height="32" class="favicon" src="{{ url_for('static', filename='/themes/oscar/img/icons/' + favicon + '.png') }}" alt="{{ favicon }}" />
8
+    <img width="32" height="32" class="favicon" src="{{ url_for('static', filename='themes/oscar/img/icons/' + favicon + '.png') }}" alt="{{ favicon }}" />
9
 {%- endmacro %}
9
 {%- endmacro %}
10
 
10
 
11
 {%- macro result_link(url, title, classes='') -%}
11
 {%- macro result_link(url, title, classes='') -%}

+ 1
- 1
searx/templates/simple/macros.html Ver arquivo

9
 
9
 
10
 <!-- Draw favicon -->
10
 <!-- Draw favicon -->
11
 {% macro draw_favicon(favicon) -%}
11
 {% macro draw_favicon(favicon) -%}
12
-    <img width="14" height="14" class="favicon" src="{{ url_for('static', filename='/themes/simple/img/icons/' + favicon + '.png') }}" alt="{{ favicon }}" />
12
+    <img width="14" height="14" class="favicon" src="{{ url_for('static', filename='themes/simple/img/icons/' + favicon + '.png') }}" alt="{{ favicon }}" />
13
 {%- endmacro %}
13
 {%- endmacro %}
14
 
14
 
15
 {% macro result_open_link(url, classes='') -%}
15
 {% macro result_open_link(url, classes='') -%}