add active menu items in default theme
This commit is contained in:
parent
ec37ff4e75
commit
293a083ced
2 changed files with 2 additions and 2 deletions
|
@ -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>
|
||||
|
|
|
@ -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;
|
||||
|
|
Loading…
Add table
Reference in a new issue