Moved main menu links into sculpin_site.yml

This commit is contained in:
Oliver Davies 2015-06-15 11:10:04 +01:00
parent 3284b32646
commit aad78eab5f
2 changed files with 23 additions and 6 deletions

View file

@ -22,3 +22,23 @@ bio: >
apple_touch_icon_sizes: [ 57, 114, 72, 144, 60, 120, 76, 152 ]
favicon_sizes: [ 160, 96, 32, 16 ]
main_menu:
- title: About
href: /
class: nav__about
- title: Work
href: /work/
class: nav__work
- title: Services
href: /services/
class: nav__services
- title: Talks
href: /talks/
class: nav__talks
- title: Blog
href: /blog/
class: nav__blog
- title: Contact
href: /contact/
class: nav__contact

View file

@ -12,12 +12,9 @@
<div id="navbar" class="collapse navbar-collapse">
<ul class="nav navbar-nav">
<li class="nav__about"><a href="/">About</a></li>
<li class="nav__work"><a href="/work/">Work</a></li>
<li class="nav__services"><a href="/services/">Services</a></li>
<li class="nav__talks"><a href="/talks/">Talks</a></li>
<li class="nav__blog"><a href="/blog/">Blog</a></li>
<li class="nav__contact"><a href="/contact/">Contact</a></li>
{% for link in site.main_menu %}
<li class="{{ link.class }}"><a href="{{ link.href }}">{{ link.title }}</a></li>
{% endfor %}
</ul>
</div>{# .nav-collapse #}
</div>