Permalink
Browse files

MENUITEMS can now be `class=active` in MENU, same behavior as CATEGORIES

  • Loading branch information...
1 parent f0cbf70 commit 82ebf7406c6d5bee552c83b7f95a59138edb3f16 @Sr4l Sr4l committed Nov 8, 2014
Showing with 1 addition and 1 deletion.
  1. +1 −1 templates/base.html
View
@@ -50,7 +50,7 @@
<div class="navbar-inner">
<ul class="nav">
{% for title, link in MENUITEMS %}
- <li><a href="{{ link }}">{{ title }}</a></li>
+ <li {% if link[1:] == output_file %}class="active"{% endif %}><a href="{{ link }}">{{ title }}</a></li>
{% endfor %}
{% if DISPLAY_PAGES_ON_MENU %}
{% for pa in PAGES %}

0 comments on commit 82ebf74

Please sign in to comment.