Account for search page not existing

This commit is contained in:
Jake Howard 2022-08-16 23:24:17 +01:00
parent 5394ebf984
commit c5e662f2d8
Signed by: jake
GPG key ID: 57AFB45680EDD477

View file

@ -28,11 +28,13 @@
<i class="fab fa-github" aria-hidden="true"></i>
</span>
</a>
<a class="navbar-item navbar-icon" href="{% pageurl search_page %}">
<span class="icon">
<i class="fas fa-search" aria-hidden="true"></i>
</span>
</a>
{% if search_page %}
<a class="navbar-item navbar-icon" href="{% pageurl search_page %}">
<span class="icon">
<i class="fas fa-search" aria-hidden="true"></i>
</span>
</a>
{% endif %}
</div>
</div>
</nav>