summaryrefslogtreecommitdiff
path: root/searx/templates/simple/result_templates
diff options
context:
space:
mode:
authorMarkus Heiser <markus.heiser@darmarit.de>2021-11-27 13:46:41 +0100
committerMarkus Heiser <markus.heiser@darmarit.de>2021-11-29 20:47:37 +0100
commitc7bb6945d193a250e0469dd05370cf6f2f18b946 (patch)
treea8209efc9d17cc94ab4d1d8dc4e1e1483212b9cb /searx/templates/simple/result_templates
parent935e5ad4170b2c0e7125d36324809fceee70df5f (diff)
downloadsearxng-c7bb6945d193a250e0469dd05370cf6f2f18b946.tar.gz
searxng-c7bb6945d193a250e0469dd05370cf6f2f18b946.zip
[fix] simple theme: img tile, shows duplicate information on screen
Remove global title attribute from img tag[1][2] . In the image result, the title is already shown from span class title:: <span class="title">{{ result.title|striptags }}</span> See commit: 8fbffb1409b [fix] simple-theme templates: polish HTML <img> elements [1] https://developer.mozilla.org/en-US/docs/Web/HTML/Element/img [2] https://developer.mozilla.org/en-US/docs/Web/HTML/Global_attributes#attr-title Reported-by: @dalf https://github.com/searxng/searxng/pull/545#issuecomment-980531215 Signed-off-by: Markus Heiser <markus.heiser@darmarit.de>
Diffstat (limited to 'searx/templates/simple/result_templates')
-rw-r--r--searx/templates/simple/result_templates/images.html6
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 da7e34969..7e45f028e 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" 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 }}" title="{{ result.title|striptags }}">
+ <img src="" data-src="{{ image_proxify(result.img_src) }}" alt="{{ result.title|striptags }}">
{%- else -%}
- <img src="{{ image_proxify(result.img_src) }}" alt="{{ result.title|striptags }}" loading="lazy" title="{{ result.title|striptags }}">
+ <img src="{{ image_proxify(result.img_src) }}" alt="{{ result.title|striptags }}" loading="lazy">
{%- endif -%}
</a>{{- "" -}}
<div class="result-images-labels">{{- "" -}}