[feat] Added setting: display_instance_name
This commit is contained in:
parent
d795e95630
commit
53ba2e9cd7
@ -23,6 +23,7 @@ brand:
|
||||
public_instances: https://searx.space
|
||||
wiki_url: https://github.com/searxng/searxng/wiki
|
||||
issue_url: https://github.com/searxng/searxng/issues
|
||||
display_instance_name: false
|
||||
# custom:
|
||||
# maintainer: "Jon Doe"
|
||||
# # Custom entries in the footer: [title]: [link]
|
||||
|
@ -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'),
|
||||
'display_instance_name': SettingsValue(bool, False),
|
||||
'custom': SettingsValue(dict, {'links': {}}),
|
||||
},
|
||||
'search': {
|
||||
|
@ -45,7 +45,9 @@
|
||||
{% endif %}
|
||||
|
||||
<nav id="links_on_top">
|
||||
<h1 id="instance_name">{{ instance_name }}</h1>
|
||||
{% if get_setting('brand.display_instance_name') %}
|
||||
<h1 id="instance_name">{{ instance_name }}</h1>
|
||||
{% endif %}
|
||||
{%- from 'simple/icons.html' import icon_big -%}
|
||||
{%- block linkto_about -%}
|
||||
<a href="{{ url_for('info', pagename='about') }}" class="link_on_top_about">{{ icon_big('information-circle-outline') }}<span>{{ _('About') }}</span></a>
|
||||
|
Loading…
x
Reference in New Issue
Block a user