1
0
mirror of https://github.com/searxng/searxng.git synced 2024-11-05 21:00:13 +01:00
searxng/searx/templates/simple
Martin Fischer 6f0ec7e58f [simple] introduce page_with_header.html template
Previously the preferences & stats templates contained the markup:

<a href="{{ url_for('index') }}"><h1><span>SearXNG</span></h1></a>

There are many things wrong with this:

1. the markup was duplicated

2. the CSS needed to be changed whenever a new page wanted to use this
   header (since the CSS used page-specific selectors)

3. h1 should be reserved for the actual page title
   (e.g. Preferences or Engine stats)

4. the image was set via CSS which also set:

       span { visibility: hidden; }

   which however removes the alternative text from the accessibility
   tree (meaning screen readers will ignore it).

This commit fixes all these problems.
2022-01-30 17:29:21 +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] lazy loading of <img> tags 2021-12-15 10:39:55 +01:00
404.html Drop Python 2 (2/n): templates 2020-09-10 10:39:04 +02:00
about.html [simple] introduce page_with_header.html template 2022-01-30 17:29:21 +01:00
base.html [simple] introduce page_with_header.html template 2022-01-30 17:29:21 +01:00
categories.html [enh] introduce categories_as_tabs 2022-01-03 07:01:49 +01:00
icons.html [build] /static 2022-01-22 17:23:43 +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: don't crash when the checker is enabled 2022-01-25 22:03:21 +01:00
page_with_header.html [simple] introduce page_with_header.html template 2022-01-30 17:29:21 +01:00
preferences.html [simple] introduce page_with_header.html template 2022-01-30 17:29:21 +01:00
results.html Uppercase buttons 2022-01-26 16:54:15 +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_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
stats.html [simple] introduce page_with_header.html template 2022-01-30 17:29:21 +01:00