diff options
| author | Markus Heiser <markus.heiser@darmarIT.de> | 2021-11-27 00:26:19 +0100 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2021-11-27 00:26:19 +0100 |
| commit | ab5097d7085f772d7ab92b257403a0fe00426114 (patch) | |
| tree | 5fdef838dc0d7fb4a7b3de556405e50f87c1d31a /searx/templates/simple/result_templates | |
| parent | cfb5eda4d12f7b2fc5904d3373e6012509c0baf8 (diff) | |
| parent | 8fbffb1409b91a76fb4228456442b661e43caa72 (diff) | |
Merge pull request #545 from return42/fix-523
[fix] simple-theme templates: polish HTML <img> elements
Diffstat (limited to 'searx/templates/simple/result_templates')
| -rw-r--r-- | searx/templates/simple/result_templates/images.html | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/searx/templates/simple/result_templates/images.html b/searx/templates/simple/result_templates/images.html index 82cfcdde5..da7e34969 100644 --- a/searx/templates/simple/result_templates/images.html +++ b/searx/templates/simple/result_templates/images.html @@ -1,6 +1,6 @@ <article class="result result-images {% if result['category'] %}category-{{ result['category'] }}{% endif %}">{{- "" -}} <a {% if results_on_new_tab %}target="_blank" rel="noopener noreferrer"{% else %}rel="noreferrer"{% endif %} href="{{ result.img_src }}">{{- "" -}} - <img class="image_thumbnail" {% if results_on_new_tab %}target="_blank" rel="noopener noreferrer"{% else %}rel="noreferrer"{% endif %} src="{% if result.thumbnail_src %}{{ image_proxify(result.thumbnail_src) }}{% else %}{{ image_proxify(result.img_src) }}{% endif %}" loading="lazy" title="{{ result.title|striptags }}" alt="{{ result.title|striptags }}"/>{{- "" -}} + <img class="image_thumbnail" {% if results_on_new_tab %}target="_blank" rel="noopener noreferrer"{% else %}rel="noreferrer"{% endif %} src="{% if result.thumbnail_src %}{{ image_proxify(result.thumbnail_src) }}{% else %}{{ image_proxify(result.img_src) }}{% endif %}" loading="lazy" title="{{ result.title|striptags }}" alt="{{ result.title|striptags }}">{{- "" -}} <span class="title">{{ result.title|striptags }}</span>{{- "" -}} </a>{{- "" -}} <div class="detail">{{- "" -}} @@ -9,9 +9,9 @@ <a class="result-detail-next" href="#">{{ icon('chevron-right') }}</a>{{- "" -}} <a class="result-images-source" {% if results_on_new_tab %}target="_blank" rel="noopener noreferrer"{% else %}rel="noreferrer"{% endif %} href="{{ result.img_src }}"> {%- if result.thumbnail_src -%} - <img src="" data-src="{{ image_proxify(result.img_src) }}" alt="{{ result.title|striptags }}"> + <img src="" data-src="{{ image_proxify(result.img_src) }}" alt="{{ result.title|striptags }}" title="{{ result.title|striptags }}"> {%- else -%} - <img src="{{ image_proxify(result.img_src) }}" alt="{{ result.title|striptags }}" loading="lazy"> + <img src="{{ image_proxify(result.img_src) }}" alt="{{ result.title|striptags }}" loading="lazy" title="{{ result.title|striptags }}"> {%- endif -%} </a>{{- "" -}} <div class="result-images-labels">{{- "" -}} |