mirror of
https://github.com/searxng/searxng.git
synced 2024-11-26 04:41:00 +00:00
[feat] footer: support for custom entries
This commit is contained in:
parent
596b9b7864
commit
7e1b5f6cc8
3 changed files with 8 additions and 0 deletions
|
@ -19,6 +19,10 @@ brand:
|
|||
public_instances: https://searx.space
|
||||
wiki_url: https://github.com/searxng/searxng/wiki
|
||||
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:
|
||||
# Filter results. 0: None, 1: Moderate, 2: Strict
|
||||
|
|
|
@ -151,6 +151,7 @@ SCHEMA = {
|
|||
'docs_url': SettingsValue(str, 'https://docs.searxng.org'),
|
||||
'public_instances': SettingsValue((False, str), 'https://searx.space'),
|
||||
'wiki_url': SettingsValue(str, 'https://github.com/searxng/searxng/wiki'),
|
||||
'custom': SettingsValue(dict, {}),
|
||||
},
|
||||
'search': {
|
||||
'safe_search': SettingsValue((0, 1, 2), 0),
|
||||
|
|
|
@ -77,6 +77,9 @@
|
|||
{% if get_setting('general.contact_url') %}
|
||||
| <a href="{{ get_setting('general.contact_url') }}">{{ _('Contact instance maintainer') }}</a>
|
||||
{% endif %}
|
||||
{% for title, link in get_setting('brand.custom').items() %}
|
||||
| <a href="{{ link }}">{{ title }}</a>
|
||||
{% endfor %}
|
||||
</p>
|
||||
</footer>
|
||||
<!--[if gte IE 9]>-->
|
||||
|
|
Loading…
Reference in a new issue