Re-add Experience link

This commit is contained in:
Oliver Davies 2016-04-18 21:05:55 +01:00
parent 346e11b486
commit 3a47a68a2a
2 changed files with 19 additions and 9 deletions

View file

@ -92,6 +92,20 @@ lanyrd:
linkedin: linkedin:
url: http://uk.linkedin.com/in/opdavies url: http://uk.linkedin.com/in/opdavies
main_menu:
about:
href: /
title: About
talks:
href: /talks/
title: Talks
experience:
href: /experience/
title: Experience
blog:
href: /blog/
title: Blog
meetups: meetups:
drupalbristol: drupalbristol:
name: Drupal Bristol name: Drupal Bristol

View file

@ -12,15 +12,11 @@
<div id="navbar" class="collapse navbar-collapse" role="navigation"> <div id="navbar" class="collapse navbar-collapse" role="navigation">
<ul class="nav navbar-nav"> <ul class="nav navbar-nav">
<li class="{{ page.nav == 'about' ? 'active' }}"> {% for id, link in site.main_menu %}
<a href="{{ site.url }}/">About</a> <li class="{{ page.nav == id ? 'active' }}">
</li> <a href="{{ site.url }}{{ link.href }}">{{ link.title }}</a>
<li class="{{ page.nav == 'talks' ? 'active' }}"> </li>
<a href="{{ site.url }}/talks/">Talks</a> {% endfor %}
</li>
<li class="{{ page.nav == 'blog' ? 'active' }}">
<a href="{{ site.url }}/blog/">Blog</a>
</li>
</ul> </ul>
</div>{# .nav-collapse #} </div>{# .nav-collapse #}
</div> </div>