better post nav handling
This commit is contained in:
parent
7ecb9d5819
commit
62226fdfee
1 changed files with 7 additions and 1 deletions
|
@ -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 %}
|
||||||
<!--
|
<!--
|
||||||
|
|
Loading…
Reference in a new issue