feat: context processor for footer nav
This commit is contained in:
parent
fdc74bbf9e
commit
cfbc4ef61c
|
@ -9,9 +9,7 @@ def nav(request):
|
||||||
for item in items
|
for item in items
|
||||||
]
|
]
|
||||||
|
|
||||||
return {
|
return {"nav_items": nav_items}
|
||||||
"nav_items": nav_items,
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
def footer_nav(request):
|
def footer_nav(request):
|
||||||
|
@ -22,4 +20,4 @@ def footer_nav(request):
|
||||||
for item in items
|
for item in items
|
||||||
]
|
]
|
||||||
|
|
||||||
return {"nav_items": nav_items}
|
return {"footer_nav_items": nav_items}
|
||||||
|
|
|
@ -86,6 +86,7 @@ TEMPLATES = [
|
||||||
"django.contrib.auth.context_processors.auth",
|
"django.contrib.auth.context_processors.auth",
|
||||||
"django.contrib.messages.context_processors.messages",
|
"django.contrib.messages.context_processors.messages",
|
||||||
"shiftregister.app.context_processors.proc",
|
"shiftregister.app.context_processors.proc",
|
||||||
|
"shiftregister.core.context_processors.footer_nav",
|
||||||
"shiftregister.core.context_processors.nav",
|
"shiftregister.core.context_processors.nav",
|
||||||
],
|
],
|
||||||
},
|
},
|
||||||
|
|
Loading…
Reference in New Issue