Add classes from link title

This commit is contained in:
Oliver Davies 2015-06-16 18:28:41 +01:00
parent 27f7ff2335
commit eb01399c68

View file

@ -13,7 +13,7 @@
<div id="navbar" class="collapse navbar-collapse">
<ul class="nav navbar-nav">
{% for link in site.main_menu %}
<li class="{{ link.class }}"><a href="{{ link.href }}">{{ link.title }}</a></li>
<li class="nav__{{ link.title | lower }}"><a href="{{ link.href }}">{{ link.title }}</a></li>
{% endfor %}
</ul>
</div>{# .nav-collapse #}