From 0fbd705259c500bb01ec2d649670de2f0a91830a Mon Sep 17 00:00:00 2001 From: Adam Tauber Date: Sat, 27 Feb 2016 18:16:40 +0100 Subject: [PATCH] [enh] settings option to change instance name - closes #450 --- searx/settings.yml | 1 + searx/templates/courgette/opensearch.xml | 2 +- searx/templates/default/opensearch.xml | 2 +- searx/templates/oscar/base.html | 4 ++-- searx/templates/oscar/navbar.html | 4 ++-- searx/templates/oscar/opensearch.xml | 2 +- searx/webapp.py | 2 ++ 7 files changed, 10 insertions(+), 7 deletions(-) diff --git a/searx/settings.yml b/searx/settings.yml index 7e8182b0f..7607ce94d 100644 --- a/searx/settings.yml +++ b/searx/settings.yml @@ -1,5 +1,6 @@ general: debug : False # Debug mode, only for development + instance_name : "searx" # displayed name search: safe_search : 0 # Filter results. 0: None, 1: Moderate, 2: Strict diff --git a/searx/templates/courgette/opensearch.xml b/searx/templates/courgette/opensearch.xml index b85c3a7f5..b77db61cb 100644 --- a/searx/templates/courgette/opensearch.xml +++ b/searx/templates/courgette/opensearch.xml @@ -1,6 +1,6 @@ - searx + {{ instance_name }} a privacy-respecting, hackable metasearch engine UTF-8 {{ host }}{{ url_for('static', filename='img/favicon.png') | replace("/", "", 1) }} diff --git a/searx/templates/default/opensearch.xml b/searx/templates/default/opensearch.xml index b85c3a7f5..b77db61cb 100644 --- a/searx/templates/default/opensearch.xml +++ b/searx/templates/default/opensearch.xml @@ -1,6 +1,6 @@ - searx + {{ instance_name }} a privacy-respecting, hackable metasearch engine UTF-8 {{ host }}{{ url_for('static', filename='img/favicon.png') | replace("/", "", 1) }} diff --git a/searx/templates/oscar/base.html b/searx/templates/oscar/base.html index a799376f5..2fc3270fc 100644 --- a/searx/templates/oscar/base.html +++ b/searx/templates/oscar/base.html @@ -9,7 +9,7 @@ {% block meta %}{% endblock %} - {% block title %}{% endblock %}searx + {% block title %}{% endblock %}{{ instance_name }} @@ -31,7 +31,7 @@ {% block head %} {% endblock %} - +