initial framework for subpage navigation

This commit is contained in:
Nils Schneider 2011-09-15 13:20:18 +02:00
parent d93a36edc8
commit 4f7ddd71c5
4 changed files with 29 additions and 15 deletions

18
_includes/nav.html Normal file
View file

@ -0,0 +1,18 @@
<div class="topbar">
<div class="fill">
<div class="container">
<h3><a href="/"><img src="img/logo_small.png" id="thelogo"/>Bitcoin</a></h3>
<ul>
{% for link in site.navigation %}
{% assign active = nil %}
{% if page.url == link.url or page.layout == link.layout %}
{% assign active = 'active' %}
{% endif %}
<li{% if active %} class="{{ active }}"{% endif %}>
<a href="{{ link.url }}">{{ link.text }}</a>
</li>
{% endfor %}
</ul>
</div>
</div>
</div>