diff options
| author | Dougal Matthews | 2014-11-19 16:22:39 +0000 |
|---|---|---|
| committer | Dougal Matthews | 2014-11-25 12:44:26 +0000 |
| commit | f2d4e51aaa33edf35921c459327b0a0ba2526ced (patch) | |
| tree | e0559e3a284f16314f7a3047db0b107722fabc08 /docs_theme | |
| parent | a0c12bf7c5cf96fbbdf0a0eb12702a093ccd3a51 (diff) | |
| download | django-rest-framework-f2d4e51aaa33edf35921c459327b0a0ba2526ced.tar.bz2 | |
Mark the homepage as active when visited
Diffstat (limited to 'docs_theme')
| -rw-r--r-- | docs_theme/nav.html | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/docs_theme/nav.html b/docs_theme/nav.html index 622cb33b..84982ff3 100644 --- a/docs_theme/nav.html +++ b/docs_theme/nav.html @@ -19,7 +19,7 @@ {% if include_nav %} <!-- Main navigation --> <ul class="nav navbar-nav"> - <li><a href="/">Home</a></li> + <li {% if current_page.input_path == 'index.md' %}class="active"{% endif %}><a href="/">Home</a></li> {% for nav_item in nav %} {% if nav_item.children %} <li class="dropdown{% if nav_item.active %} active{% endif %}"> <a href="#" class="dropdown-toggle" data-toggle="dropdown">{{ nav_item.title }} <b class="caret"></b></a> |
