From 8fbffb1409b91a76fb4228456442b661e43caa72 Mon Sep 17 00:00:00 2001 From: Markus Heiser Date: Thu, 25 Nov 2021 12:04:39 +0100 Subject: [fix] simple-theme templates: polish HTML elements - [1] element does not have an end tag, no need for a leading `/>` - add global attribute title[2] to result_templates/images.html (result-images-source) - in jinja macro 'macro result_header' remove duplicate of class="image" - in jinja macro 'macro result_header' remove alt attribute (fix [3]):: alt="{{ result.title|striptags }}" the result.title is already shown in::

{{ result_link(result.url, result.title|safe) }}

[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 [3] https://github.com/searxng/searxng/issues/523 Closes: https://github.com/searxng/searxng/issues/523 Signed-off-by: Markus Heiser --- searx/templates/simple/result_templates/images.html | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'searx/templates/simple/result_templates') 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 @@