Logo
Explore Help
Sign In
djoka/searxng
1
0
Fork 0
You've already forked searxng
Code Issues Pull Requests Actions 3 Packages Projects Releases Wiki Activity
Files
e7c0f4e877dc90fc44989a304b555a8b6f1f6665
searxng/searx/templates/simple/page_with_header.html

6 lines
237 B
HTML
Raw Normal View History

[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 09:39:21 +01:00
{% set body_class = "page_with_header" %}
{% extends "simple/base.html" %}
{% block header %}
<a href="{{ url_for('index') }}"><img class="logo" src="{{ url_for('static', filename='img/searxng.png') }}" alt="SearXNG"></a>
{% endblock %}
Reference in New Issue Copy Permalink
Powered by Gitea Version: 1.25.5 Page: 176ms Template: 5ms
English
Bahasa Indonesia Deutsch English Español Français Gaeilge Italiano Latviešu Magyar nyelv Nederlands Polski Português de Portugal Português do Brasil Suomi Svenska Türkçe Čeština Ελληνικά Български Русский Українська فارسی മലയാളം 日本語 简体中文 繁體中文(台灣) 繁體中文(香港) 한국어
Licenses API