diff options
Diffstat (limited to 'docs_theme/base.html')
| -rw-r--r-- | docs_theme/base.html | 11 |
1 files changed, 4 insertions, 7 deletions
diff --git a/docs_theme/base.html b/docs_theme/base.html index 004fbacd..cefaef48 100644 --- a/docs_theme/base.html +++ b/docs_theme/base.html @@ -54,9 +54,7 @@ } </style> </head> -{# TODO: This is a bit of a hack. We don't want to refer to the file specifically. #} - -<body onload="prettyPrint()" class="{% if current_page.input_path == 'index.md' %}index{% endif %}-page"> +<body onload="prettyPrint()" class="{% if current_page.title == 'Home' %}index{% endif %}-page"> <div class="wrapper"> @@ -106,7 +104,7 @@ <div id="table-of-contents"> <ul class="nav nav-list side-nav well sidebar-nav-fixed"> - {% if current_page.input_path == 'index.md' %} + {% if current_page.title == 'Home' %} <li class="main"> <a href="#">Django REST framework</a> </li> @@ -114,7 +112,7 @@ {% for toc_item in toc %} - <li class="{% if current_page.input_path != 'index.md' %}main{% endif %}"> + <li class="{% if current_page.title != 'Home' %}main{% endif %}"> <a href="{{ toc_item.url }}">{{ toc_item.title }}</a> </li> @@ -126,8 +124,7 @@ {% endfor %} - {# TODO: This is a bit of a hack. We don't want to refer to the file specifically. #} - {% if current_page.input_path == 'index.md' %} + {% if current_page.title == 'Home' %} <div class="promo"> <hr/> <script type="text/javascript" src="//cdn.fusionads.net/fusion.js?zoneid=1332&serve=C6SDP2Y&placement=djangorestframework" id="_fusionads_js"></script> |
