1
0
mirror of https://github.com/searxng/searxng.git synced 2024-11-22 12:10:11 +01:00

[feat] footer: support for custom entries

This commit is contained in:
Bnyro 2024-01-19 15:48:58 +01:00 committed by Markus Heiser
parent 596b9b7864
commit 7e1b5f6cc8
3 changed files with 8 additions and 0 deletions

View File

@ -19,6 +19,10 @@ brand:
public_instances: https://searx.space public_instances: https://searx.space
wiki_url: https://github.com/searxng/searxng/wiki wiki_url: https://github.com/searxng/searxng/wiki
issue_url: https://github.com/searxng/searxng/issues issue_url: https://github.com/searxng/searxng/issues
# Custom entries in the footer: [title]: [link]
# custom:
# About instance: "https://searxng.org"
# Instance admin: "https://searxng.org"
search: search:
# Filter results. 0: None, 1: Moderate, 2: Strict # Filter results. 0: None, 1: Moderate, 2: Strict

View File

@ -151,6 +151,7 @@ SCHEMA = {
'docs_url': SettingsValue(str, 'https://docs.searxng.org'), 'docs_url': SettingsValue(str, 'https://docs.searxng.org'),
'public_instances': SettingsValue((False, str), 'https://searx.space'), 'public_instances': SettingsValue((False, str), 'https://searx.space'),
'wiki_url': SettingsValue(str, 'https://github.com/searxng/searxng/wiki'), 'wiki_url': SettingsValue(str, 'https://github.com/searxng/searxng/wiki'),
'custom': SettingsValue(dict, {}),
}, },
'search': { 'search': {
'safe_search': SettingsValue((0, 1, 2), 0), 'safe_search': SettingsValue((0, 1, 2), 0),

View File

@ -77,6 +77,9 @@
{% if get_setting('general.contact_url') %} {% if get_setting('general.contact_url') %}
| <a href="{{ get_setting('general.contact_url') }}">{{ _('Contact instance maintainer') }}</a> | <a href="{{ get_setting('general.contact_url') }}">{{ _('Contact instance maintainer') }}</a>
{% endif %} {% endif %}
{% for title, link in get_setting('brand.custom').items() %}
| <a href="{{ link }}">{{ title }}</a>
{% endfor %}
</p> </p>
</footer> </footer>
<!--[if gte IE 9]>--> <!--[if gte IE 9]>-->