_includes/site-nav.html in garth-jekyll-theme-1.0.4 vs _includes/site-nav.html in garth-jekyll-theme-1.0.5
- old
+ new
@@ -2,14 +2,14 @@
<ul class="list list--nav">
{% for item in site.pages %}
{% unless item.title == false or item.url contains "/page" or item.url contains "/404.html" or item.url contains "/feed." %}
<li class="item item--nav{% if item.url == page.url %} item--current{% endif %}">
{% if item.collectionpage %}
- {% assign collectiondata = site.collections | where: "label", item.collectionpage | first %}
- <a href="{{ site.baseurl }}{{ item.url }}">{{ collectiondata.title }}</a>
- {% else %}
+ {% assign collectiondata = site.collections | where: "label", item.collectionpage | first %}
+ <a href="{{ site.baseurl }}{{ item.url }}">{{ collectiondata.title }}</a>
+ {% else %}
<a href="{{ site.baseurl }}{{ item.url }}">{{ item.title }}</a>
- {% endif %}
+ {% endif %}
</li>
{% endunless %}
{% endfor %}
</ul>
</nav>