searxng/searx/templates/simple
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
..
filters [simple theme] rework select; add safesearch to search and replace / with › in article url 2021-11-21 21:38:00 +01:00
messages [fix] templates: remove unneeded escape \' of single quotation mark 2021-11-24 17:40:03 +01:00
result_templates [fix] simple-theme templates: polish HTML <img> elements 2021-11-25 12:07:57 +01:00
404.html Drop Python 2 (2/n): templates 2020-09-10 10:39:04 +02:00
about.html [enh] add simple theme (WIP) 2017-08-06 16:04:21 +02:00
base.html [enh] simple theme: add "simple-style" preferences 2021-11-19 16:45:50 +01:00
categories.html [simple theme] rework select; add safesearch to search and replace / with › in article url 2021-11-21 21:38:00 +01:00
icons.html [fix] delete trailing whitespace 2021-11-13 15:40:00 +01:00
index.html [simple theme] update to ion icons 5 and drop webfont 2021-11-13 10:42:07 +01:00
infobox.html [fix] simple-theme templates: polish HTML <img> elements 2021-11-25 12:07:57 +01:00
macros.html [fix] simple-theme templates: polish HTML <img> elements 2021-11-25 12:07:57 +01:00
preferences.html [fix] templates: remove unneeded escape \' of single quotation mark 2021-11-24 17:40:03 +01:00
results.html Merge pull request #485 from dalf/pref_query_in_title 2021-11-24 13:10:27 +01:00
search.html [simple theme] rework select; add safesearch to search and replace / with › in article url 2021-11-21 21:38:00 +01:00
simple.spec.txt [enh] add simple theme (WIP) 2017-08-06 16:04:21 +02:00
simple_search.html [simple theme] rework select; add safesearch to search and replace / with › in article url 2021-11-21 21:38:00 +01:00
stats.html [simple theme] update to ion icons 5 and drop webfont 2021-11-13 10:42:07 +01:00