diff --git a/common/djangoapps/microsite_configuration/templatetags/microsite.py b/common/djangoapps/microsite_configuration/templatetags/microsite.py index 3b21dec7df..ef2d88e26a 100644 --- a/common/djangoapps/microsite_configuration/templatetags/microsite.py +++ b/common/djangoapps/microsite_configuration/templatetags/microsite.py @@ -5,6 +5,7 @@ based on the current micro site. from django import template from django.conf import settings from microsite_configuration import microsite +from django.templatetags.static import static register = template.Library() @@ -38,3 +39,12 @@ def platform_name(): {% platform_name %} """ return microsite.get_value('platform_name', settings.PLATFORM_NAME) + + +@register.simple_tag(name="favicon_path") +def favicon_path(default=settings.FAVICON_PATH): + """ + Django template tag that outputs the configured favicon: + {% favicon_path %} + """ + return static(microsite.get_value('favicon_path', default)) diff --git a/lms/templates/main_django.html b/lms/templates/main_django.html index ceef729d6e..4dd72a3e89 100644 --- a/lms/templates/main_django.html +++ b/lms/templates/main_django.html @@ -5,7 +5,7 @@ {% block title %}{% platform_name %}{% endblock %} - + {% compressed_css 'style-vendor' %} {% compressed_css 'style-app' %}