add favicon support

This commit is contained in:
Laura Klünder 2017-12-19 19:32:58 +01:00
parent 2587f5f8ba
commit a006d8a9ec
6 changed files with 49 additions and 18 deletions

View file

@ -1,7 +1,12 @@
from django.conf import settings
import os
from c3nav.site.finders import logo_paths
logos_result = {
prefix: os.path.join(prefix, os.path.basename(path)) if path else None
for prefix, path in logo_paths.items()
}
def header_logo(request):
return {
'header_logo': settings.HEADER_LOGO_NAME
}
def logos(request):
return logos_result