diff options
Diffstat (limited to 'notmyidea-cms')
-rw-r--r-- | notmyidea-cms/templates/base.html | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/notmyidea-cms/templates/base.html b/notmyidea-cms/templates/base.html index a782e50..4d92ec2 100644 --- a/notmyidea-cms/templates/base.html +++ b/notmyidea-cms/templates/base.html @@ -27,8 +27,10 @@ <header id="banner" class="body"> <h1><a href="{{ SITEURL }}/index.html">{{ SITENAME }} {% if SITESUBTITLE %} <strong>{{ SITESUBTITLE }}</strong>{% endif %}</a></h1> <nav><ul> - {% for title, link in MENUITEMS %} - <li><a href="{{ link }}">{{ title }}</a></li> + {% for title, url in MENUITEMS %} + <li {% if page is defined and url == page.url %} class="active" {% endif %}> + <a href="{{ SITEURL }}/{{ url }}">{{ title }}</a> + </li> {% endfor %} {% if DISPLAY_PAGES_ON_MENU != False %} {% for p in PAGES %} |