_includes/nav-default.html in alembic-jekyll-theme-3.0.1 vs _includes/nav-default.html in alembic-jekyll-theme-3.0.2
- old
+ new
@@ -3,20 +3,20 @@
{% for item in site.html_pages %}
{% unless item.title == false or item.url contains "/page" or item.url contains "/404.html" %}
<li class="item item--nav{% if item.url == page.url %} item--current{% endif %}">
{% if item.url contains '://' %}
- {% assign url = item.url %}
+ {% assign url = item.url %}
{% else %}
- {% assign url = item.url | relative_url %}
+ {% assign url = item.url | relative_url %}
{% endif %}
{% if item.collectionpage %}
- {% assign collectiondata = site.collections | where: "label", item.collectionpage | first %}
- <a href="{{ url }}">{{ collectiondata.title }}</a>
- {% else %}
+ {% assign collectiondata = site.collections | where: "label", item.collectionpage | first %}
+ <a href="{{ url }}">{{ collectiondata.title }}</a>
+ {% else %}
<a href="{{ url }}">{{ item.title }}</a>
- {% endif %}
+ {% endif %}
</li>
{% endunless %}
{% endfor %}
</ul>
</nav>