diff --git a/lemoncurry/jinja2/__init__.py b/lemoncurry/jinja2/__init__.py index cf944df..e463d47 100644 --- a/lemoncurry/jinja2/__init__.py +++ b/lemoncurry/jinja2/__init__.py @@ -9,6 +9,7 @@ from django_activeurl.ext.django_jinja import ActiveUrl from entries.kinds import all as entry_kinds from .markdown import markdown +from ..theme import color as theme_color from ..utils import friendly_url, load_package_json @@ -29,6 +30,7 @@ def environment(**options): 'package': load_package_json(), 'settings': settings, 'static': staticfiles_storage.url, + 'theme_color': theme_color, 'url': reverse, }) return env diff --git a/lemoncurry/jinja2/lemoncurry/layout.html b/lemoncurry/jinja2/lemoncurry/layout.html index 09800e4..1d02480 100644 --- a/lemoncurry/jinja2/lemoncurry/layout.html +++ b/lemoncurry/jinja2/lemoncurry/layout.html @@ -5,13 +5,13 @@ {% if title %}{{ title }} ~ {% endif %}{{ request.site.name }} - {% block head %}{% endblock %} {% if atom is defined %} {% endif %} {% if rss is defined %} {% endif %} + {% block head %}{% endblock %} @@ -20,6 +20,7 @@ + diff --git a/wellknowns/views/manifest.py b/wellknowns/views/manifest.py index d50cf16..45f108b 100644 --- a/wellknowns/views/manifest.py +++ b/wellknowns/views/manifest.py @@ -24,17 +24,7 @@ def manifest(request): 'start_url': urljoin(base, start_url), 'background_color': color(0), - 'theme_color': color(2), + 'theme_color': color(10), } - # icons = FaviconImg.objects.filter( - # faviconFK__isFavicon=True, - # rel__in=rels, - # ).order_by('size') - # app['icons'] = [{ - # 'type': 'image/png', - # 'sizes': '{0}x{0}'.format(icon.size), - # 'src': urljoin(base, icon.faviconImage.url), - # } for icon in icons] - return JsonResponse(app, content_type='application/manifest+json')