diff options
| author | Dougal Matthews | 2014-11-25 13:14:51 +0000 |
|---|---|---|
| committer | Dougal Matthews | 2014-11-25 13:14:51 +0000 |
| commit | 66fc51de5c4622073e7e6cfd12cc7c4a1a8ba60c (patch) | |
| tree | 75ef8fdb7084a6f48efc8f3d3344825e6816cd55 /docs_theme/nav.html | |
| parent | 673f48242f34ee6b7ba91ab4cf8a67f1bb26a272 (diff) | |
| download | django-rest-framework-66fc51de5c4622073e7e6cfd12cc7c4a1a8ba60c.tar.bz2 | |
Use the is_homepage property.
Diffstat (limited to 'docs_theme/nav.html')
| -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 24304b8a..ca1afc0e 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 {% if current_page.title == 'Home' %}class="active"{% endif %}><a href="/">Home</a></li> + <li {% if current_page.is_homepage %}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> |
