From b32412f4fd1db75053cedec3b05200e6a91fac13 Mon Sep 17 00:00:00 2001 From: Danielle McLean Date: Mon, 25 Jun 2018 13:53:11 +1000 Subject: [PATCH] Add a bunch of tags I forgot about, oops --- lemoncurry/jinja2/__init__.py | 2 ++ lemoncurry/jinja2/lemoncurry/layout.html | 14 ++++++++++++++ 2 files changed, 16 insertions(+) diff --git a/lemoncurry/jinja2/__init__.py b/lemoncurry/jinja2/__init__.py index 681f1d0..cf944df 100644 --- a/lemoncurry/jinja2/__init__.py +++ b/lemoncurry/jinja2/__init__.py @@ -1,5 +1,6 @@ from django.contrib.humanize.templatetags.humanize import naturaltime from django.contrib.staticfiles.storage import staticfiles_storage +from django.conf import settings from django.urls import reverse from jinja2 import Environment @@ -26,6 +27,7 @@ def environment(**options): env.globals.update({ 'entry_kinds': entry_kinds, 'package': load_package_json(), + 'settings': settings, 'static': staticfiles_storage.url, 'url': reverse, }) diff --git a/lemoncurry/jinja2/lemoncurry/layout.html b/lemoncurry/jinja2/lemoncurry/layout.html index 783879f..e2c9769 100644 --- a/lemoncurry/jinja2/lemoncurry/layout.html +++ b/lemoncurry/jinja2/lemoncurry/layout.html @@ -6,6 +6,20 @@ {% if title %}{{ title }} ~ {% endif %}{{ request.site.name }} {% block head %}{% endblock %} + {% if atom is defined %} + + {% endif %} + {% if rss is defined %} + + {% endif %} + + + + + + + +