From fb8cb5f298b54b53865966ce18abdd329f38a5f9 Mon Sep 17 00:00:00 2001 From: Kumi Date: Wed, 3 Mar 2021 11:36:25 +0100 Subject: [PATCH] Prepare for dynamic generation of navigation menus --- frontend/templates/frontend/sidebar.html | 81 +--------------------- frontend/templatetags/__init__.py | 0 frontend/templatetags/navigation.py | 85 ++++++++++++++++++++++++ kumify/settings.py | 22 ++++-- 4 files changed, 103 insertions(+), 85 deletions(-) create mode 100644 frontend/templatetags/__init__.py create mode 100644 frontend/templatetags/navigation.py diff --git a/frontend/templates/frontend/sidebar.html b/frontend/templates/frontend/sidebar.html index c0ce3a9..96f945e 100644 --- a/frontend/templates/frontend/sidebar.html +++ b/frontend/templates/frontend/sidebar.html @@ -1,3 +1,5 @@ +{% load navigation %} +