[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:
Alexandre Flament 2017-01-13 22:15:11 +01:00
parent 57149661e4
commit 7fdfeca3a4
14 changed files with 75 additions and 353 deletions

View file

@ -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