searxng/searx/templates/simple/result_templates
Markus Heiser 8fbffb1409 [fix] simple-theme templates: polish HTML <img> elements
- <img> [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::

    <h3>{{ result_link(result.url, result.title|safe) }}</h3>

[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 <markus.heiser@darmarit.de>
2021-11-25 12:07:57 +01:00
..
code.html [fix] simple theme: fix open in a new tab preference 2021-11-05 09:36:19 +01:00
default.html [simple template] format default string 'italic' 2021-11-23 15:28:08 +01:00
images.html [fix] simple-theme templates: polish HTML <img> elements 2021-11-25 12:07:57 +01:00
key-value.html [fix] correct kv template formatting and remove internal data 2021-06-01 10:53:37 +02:00
map.html [simple theme] update to ion icons 5 and drop webfont 2021-11-13 10:42:07 +01:00
torrent.html [simple theme] update to ion icons 5 and drop webfont 2021-11-13 10:42:07 +01:00
videos.html fix PR #535 2021-11-23 18:59:50 +01:00