summaryrefslogtreecommitdiff
path: root/examples/basic_engine.py
diff options
context:
space:
mode:
authorMarkus Heiser <markus.heiser@darmarit.de>2021-11-25 12:04:39 +0100
committerMarkus Heiser <markus.heiser@darmarit.de>2021-11-25 12:07:57 +0100
commit8fbffb1409b91a76fb4228456442b661e43caa72 (patch)
treeb86af1380185f9bd961d1ce11bb42d42d881b5fd /examples/basic_engine.py
parentbd285de48a7db9f67c9e5dd50aba8742f552a245 (diff)
[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>
Diffstat (limited to 'examples/basic_engine.py')
0 files changed, 0 insertions, 0 deletions