Find file
Fetching contributors…
Cannot retrieve contributors at this time
12 lines (11 sloc) 423 Bytes
<ul class="topmenu">
{% for link in site.navigation %}
{% assign current = nil %}
{% if page.url contains link.url %}
{% assign current = 'current' %}
{% endif %}
<li class="element {% if forloop.first %}first{% endif %} {{ current }} {% if forloop.last %}last{% endif %}">
<a class="{{ current }}" href="{{ link.url }}">{{ link.title }}</a>
</li>
{% endfor %}
</ul>