Link search button to search page

For now...
This commit is contained in:
Jake Howard 2022-08-05 09:46:55 +01:00
parent 4869b47d53
commit 4e177f9400
Signed by: jake
GPG key ID: 57AFB45680EDD477
2 changed files with 3 additions and 1 deletions

View file

@ -28,7 +28,7 @@
<i class="fab fa-github" aria-hidden="true"></i>
</span>
</a>
<a class="navbar-item navbar-icon" id="search-button">
<a class="navbar-item navbar-icon" href="{% pageurl search_page %}">
<span class="icon">
<i class="fas fa-search" aria-hidden="true"></i>
</span>

View file

@ -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(),
}