Tidier
This commit is contained in:
parent
88878b6433
commit
ff81078e94
|
@ -12,8 +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>
|
||||
{% set items = { 0: 'work', 1: 'services', 2: 'talks', 3: 'blog', 4: 'contact' } %}
|
||||
{% for item in items %}
|
||||
{% for item in { 0: 'work', 1: 'services', 2: 'talks', 3: 'blog', 4: 'contact' } %}
|
||||
<li{% if page.nav == item %} class="active"{% endif %}><a href="{{ site.url }}/{{ item }}">{{ item|title }}</a></li>
|
||||
{% endfor %}
|
||||
</ul>
|
||||
|
|
Reference in a new issue