summaryrefslogtreecommitdiff
path: root/searx/utils.py
diff options
context:
space:
mode:
authorAlexandre Flament <alex@al-f.net>2017-01-13 22:15:11 +0100
committerAlexandre Flament <alex@al-f.net>2017-01-20 15:40:38 +0100
commit7fdfeca3a43e0e2bd8ef2dcb27cca7745edf596a (patch)
treec0f79e059929c184d3d368c2bc8bb20293b65061 /searx/utils.py
parent57149661e4f90e5ad3a9a4c36bb5f31a1c7ec6aa (diff)
downloadsearxng-7fdfeca3a43e0e2bd8ef2dcb27cca7745edf596a.tar.gz
searxng-7fdfeca3a43e0e2bd8ef2dcb27cca7745edf596a.zip
[mod] add a __common__ template that can't be selected but that provides a common place for shared templates.
What has been moved into this template : * opensearch*.xml is always the same whatever the themes. * the text inside */about.html
Diffstat (limited to 'searx/utils.py')
-rw-r--r--searx/utils.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/searx/utils.py b/searx/utils.py
index faa634853..35cb6f8a6 100644
--- a/searx/utils.py
+++ b/searx/utils.py
@@ -175,6 +175,8 @@ def get_themes(root):
templates_path = os.path.join(root, 'templates')
themes = os.listdir(os.path.join(static_path, 'themes'))
+ if '__common__' in themes:
+ themes.remove('__common__')
return static_path, templates_path, themes