better post nav handling

This commit is contained in:
jem 2019-11-25 20:44:10 +01:00
parent 7ecb9d5819
commit 62226fdfee

View file

@ -33,7 +33,13 @@
{% if home-page %} {% if home-page %}
<li {%ifequal page.uri home-page.uri %} class="nav-item active" {% endifequal %} <li {%ifequal page.uri home-page.uri %} class="nav-item active" {% endifequal %}
{%ifunequal page.uri home-page.uri %} class="nav-item" {% endifunequal %}> {%ifunequal page.uri home-page.uri %} class="nav-item" {% endifunequal %}>
<a class="nav-link" href="/">{{home-page.title}}</a> <a class="nav-link" href="/">
{% if latest-posts %}
home
{% else %}
{{home-page.title}}
{% endif %}
</a>
</li> </li>
{% endif %} {% endif %}
<!-- <!--