add active menu items in default theme

This commit is contained in:
jfoucher 2013-06-28 20:48:44 +02:00
parent ec37ff4e75
commit 293a083ced
2 changed files with 2 additions and 2 deletions

View file

@ -22,7 +22,7 @@
<h1><a href="{{ base_url }}">{{ site_title }}</a></h1>
<ul class="nav">
{% for page in pages %}
<li><a href="{{ page.url }}">{{ page.title }}</a></li>
<li{% if current_page.url == page.url %} class="active"{% endif %}><a href="{{ page.url }}">{{ page.title }}</a></li>
{% endfor %}
</ul>
</div>

View file

@ -213,7 +213,7 @@ blockquote {
}
#header a { color: #afe1da; }
#header h1 a,
#header a:hover { color: #fff; }
#header a:hover, #header li.active a { color: #fff; }
#header h1 {
font-weight: bold;
margin: 0;