Use an array instead of a hash

This commit is contained in:
Oliver Davies 2015-04-13 08:57:21 +01:00
parent ff81078e94
commit a85a9a7028

View file

@ -12,7 +12,7 @@
<div id="navbar" class="collapse navbar-collapse">
<ul class="nav navbar-nav navbar-right" role="navigation">
<li{% if page.nav == 'about' %} class="active"{% endif %}><a href="{{ site.url }}">About</a></li>
{% for item in { 0: 'work', 1: 'services', 2: 'talks', 3: 'blog', 4: 'contact' } %}
{% for item in [ 'work', 'services', 'talks', 'blog', 'contact' ] %}
<li{% if page.nav == item %} class="active"{% endif %}><a href="{{ site.url }}/{{ item }}">{{ item|title }}</a></li>
{% endfor %}
</ul>