1
0
mirror of https://github.com/checktheroads/hyperglass synced 2024-05-11 05:55:08 +00:00

added favicon path config variable & base.html jinja variable

This commit is contained in:
checktheroads
2019-05-15 14:35:01 -07:00
parent baaa3d1a1b
commit 5f15935b7b
3 changed files with 22 additions and 2 deletions

View File

@@ -334,6 +334,24 @@ class brand:
else:
return t["logo_path"]
def favicon16_path():
list = []
for t in branding:
if len(t["favicon16_path"]) == 0:
f = "static/images/favicon/favicon-16x16.png"
return f
else:
return t["favicon16_path"]
def favicon32_path():
list = []
for t in branding:
if len(t["favicon32_path"]) == 0:
f = "static/images/favicon/favicon-32x32.png"
return f
else:
return t["favicon32_path"]
def logo_width():
list = []
for t in branding: