aboutsummaryrefslogtreecommitdiffstats
path: root/docs
diff options
context:
space:
mode:
authorDougal Matthews2014-10-29 21:26:51 +0000
committerDougal Matthews2014-11-25 12:43:42 +0000
commit6da9d5aee09aecbfb7afdacdd2e445e7c30c5999 (patch)
treea0b6aff279a27cb70b133d71810443ceb4c7ba61 /docs
parent5600878672a47a6aedd49322b4e0c9cce561d1d6 (diff)
downloaddjango-rest-framework-6da9d5aee09aecbfb7afdacdd2e445e7c30c5999.tar.bz2
Add a workaround for not having the index name
Diffstat (limited to 'docs')
-rw-r--r--docs/theme/base.html12
1 files changed, 11 insertions, 1 deletions
diff --git a/docs/theme/base.html b/docs/theme/base.html
index bb3ede2a..d8ff0e07 100644
--- a/docs/theme/base.html
+++ b/docs/theme/base.html
@@ -49,7 +49,8 @@ a.fusion-poweredby {
}
</style>
</head>
- <body onload="prettyPrint()" class="{{ page_id }}-page">
+ {# 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">
<div class="wrapper">
@@ -193,6 +194,15 @@ a.fusion-poweredby {
<li><a href="{{ toc_item.url }}">{{ toc_item.title }}</a></li>
{% endfor %}
{% 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' %}
+ <div class="promo">
+ <hr/>
+ <script type="text/javascript" src="//cdn.fusionads.net/fusion.js?zoneid=1332&serve=C6SDP2Y&placement=djangorestframework" id="_fusionads_js"></script>
+ </div>
+ {% endif %}
+
</ul>
</div>