diff options
| author | Bnyro <bnyro@tutanota.com> | 2024-01-19 15:48:58 +0100 |
|---|---|---|
| committer | Markus Heiser <markus.heiser@darmarIT.de> | 2024-02-10 08:03:43 +0100 |
| commit | 7e1b5f6cc83491d98763f010ab9052529576257e (patch) | |
| tree | 8dc6c505f73a74b4b88f3fe2d562832f63d98374 | |
| parent | 596b9b786441924fadb265fd319a238f2b274b4f (diff) | |
[feat] footer: support for custom entries
| -rw-r--r-- | searx/settings.yml | 4 | ||||
| -rw-r--r-- | searx/settings_defaults.py | 1 | ||||
| -rw-r--r-- | searx/templates/simple/base.html | 3 |
3 files changed, 8 insertions, 0 deletions
diff --git a/searx/settings.yml b/searx/settings.yml index 92bb0ff26..ec6c5bdc8 100644 --- a/searx/settings.yml +++ b/searx/settings.yml @@ -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 diff --git a/searx/settings_defaults.py b/searx/settings_defaults.py index 6a56fdd7d..f7ff9170c 100644 --- a/searx/settings_defaults.py +++ b/searx/settings_defaults.py @@ -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), diff --git a/searx/templates/simple/base.html b/searx/templates/simple/base.html index b7b1b35d3..d22d96685 100644 --- a/searx/templates/simple/base.html +++ b/searx/templates/simple/base.html @@ -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]>--> |