Link search button to search page
For now...
This commit is contained in:
parent
4869b47d53
commit
4e177f9400
2 changed files with 3 additions and 1 deletions
|
@ -28,7 +28,7 @@
|
||||||
<i class="fab fa-github" aria-hidden="true"></i>
|
<i class="fab fa-github" aria-hidden="true"></i>
|
||||||
</span>
|
</span>
|
||||||
</a>
|
</a>
|
||||||
<a class="navbar-item navbar-icon" id="search-button">
|
<a class="navbar-item navbar-icon" href="{% pageurl search_page %}">
|
||||||
<span class="icon">
|
<span class="icon">
|
||||||
<i class="fas fa-search" aria-hidden="true"></i>
|
<i class="fas fa-search" aria-hidden="true"></i>
|
||||||
</span>
|
</span>
|
||||||
|
|
|
@ -1,6 +1,7 @@
|
||||||
from django.template import Library
|
from django.template import Library
|
||||||
|
|
||||||
from website.home.models import HomePage
|
from website.home.models import HomePage
|
||||||
|
from website.search.models import SearchPage
|
||||||
|
|
||||||
register = Library()
|
register = Library()
|
||||||
|
|
||||||
|
@ -14,4 +15,5 @@ def navbar() -> dict:
|
||||||
.live()
|
.live()
|
||||||
.filter(show_in_menus=True)
|
.filter(show_in_menus=True)
|
||||||
.order_by("title"),
|
.order_by("title"),
|
||||||
|
"search_page": SearchPage.objects.all().live().defer_streamfields().first(),
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue