2017-01-03 19:41:34 -05:00
|
|
|
<nav class="nav">
|
|
|
|
<ul class="list list--nav">
|
|
|
|
{% for item in site.pages %}
|
2017-01-08 11:06:03 -05:00
|
|
|
{% unless item.title == false or item.url contains "/page" or item.url contains "/404.html" or item.url contains "/feed." %}
|
2017-01-04 17:36:30 -05:00
|
|
|
<li class="item item--nav{% if item.url == page.url %} item--current{% endif %}">
|
2017-01-04 03:54:39 -05:00
|
|
|
{% if item.collectionpage %}
|
|
|
|
{% assign collectiondata = site.collections | where: "label", item.collectionpage | first %}
|
|
|
|
<a href="{{ item.url }}">{{ collectiondata.title }}</a>
|
|
|
|
{% else %}
|
|
|
|
<a href="{{ item.url }}">{{ item.title }}</a>
|
|
|
|
{% endif %}
|
2017-01-03 19:41:34 -05:00
|
|
|
</li>
|
|
|
|
{% endunless %}
|
|
|
|
{% endfor %}
|
|
|
|
</ul>
|
|
|
|
</nav>
|