aboutsummaryrefslogtreecommitdiffstats
path: root/docs_theme/nav.html
diff options
context:
space:
mode:
authorDougal Matthews2014-11-25 13:09:47 +0000
committerDougal Matthews2014-11-25 13:09:47 +0000
commit4d28a0930995a3a73860d6a2d405e12abbf5d653 (patch)
treeaad265d4eef9ca963b5ebb2df8232dc07a7d049c /docs_theme/nav.html
parent935d94c034b63cbe699d5d0ef04f472c3aeb3237 (diff)
downloaddjango-rest-framework-4d28a0930995a3a73860d6a2d405e12abbf5d653.tar.bz2
Refer to the current_page title rather than filename
Diffstat (limited to 'docs_theme/nav.html')
-rw-r--r--docs_theme/nav.html2
1 files changed, 1 insertions, 1 deletions
diff --git a/docs_theme/nav.html b/docs_theme/nav.html
index 84982ff3..24304b8a 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.input_path == 'index.md' %}class="active"{% endif %}><a href="/">Home</a></li>
+ <li {% if current_page.title == 'Home' %}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>