Fixing oops

This commit is contained in:
Zachary Klosko 2020-05-12 22:51:56 -04:00
parent 4ced81a76c
commit 1ae01aff22

View file

@ -38,6 +38,17 @@
</ul> </ul>
{% endif %} {% endif %}
{% for link in site.navigation %}
{% assign current = nil %}
{% if page.url == link.url %}
{% assign current = 'current' %}
{% endif %}
<li style="list-style: none;" class="nav-list-item{% if forloop.first %}first{% endif %} {{ current }} {% if forloop.last %}nav-list-item-last{% endif %}">
<a class="{{ current }}" href="{{ link.url }}">{{ link.text }}</a>
</li>
{% endfor %}
</header> </header>
<section> <section>