This commit is contained in:
jem 2020-02-19 17:53:17 +01:00
parent 3bb1d50066
commit 6a76bf5104

View file

@ -34,11 +34,13 @@
<li {%ifequal page.uri home-page.uri %} class="nav-item active" {% endifequal %}
{%ifunequal page.uri home-page.uri %} class="nav-item" {% endifunequal %}>
<a class="nav-link" href="/">
{% if latest-posts %}
{% with latest=latest-posts|first %}
{%ifequal page.title latest.title %}
home
{% else %}
{{home-page.title}}
{% endif %}
{% endifequal %}
{% endwith %}
</a>
</li>
{% endif %}