diff --git a/website/common/templates/common/navbar.html b/website/common/templates/common/navbar.html index 576e6b3..34fe928 100644 --- a/website/common/templates/common/navbar.html +++ b/website/common/templates/common/navbar.html @@ -28,7 +28,7 @@ - + diff --git a/website/common/templatetags/navbar_tags.py b/website/common/templatetags/navbar_tags.py index 1ccae63..728ce77 100644 --- a/website/common/templatetags/navbar_tags.py +++ b/website/common/templatetags/navbar_tags.py @@ -1,6 +1,7 @@ from django.template import Library from website.home.models import HomePage +from website.search.models import SearchPage register = Library() @@ -14,4 +15,5 @@ def navbar() -> dict: .live() .filter(show_in_menus=True) .order_by("title"), + "search_page": SearchPage.objects.all().live().defer_streamfields().first(), }