mirror of
https://github.com/searxng/searxng.git
synced 2025-07-12 15:59:21 +02:00
[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
This commit is contained in:
parent
57149661e4
commit
7fdfeca3a4
14 changed files with 75 additions and 353 deletions
|
@ -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
|
||||
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue