diff options
| author | Dougal Matthews | 2014-11-19 15:59:25 +0000 |
|---|---|---|
| committer | Dougal Matthews | 2014-11-25 12:44:26 +0000 |
| commit | 5a6bdd01ba9f8731c0963c355b41839860a5a4de (patch) | |
| tree | 60b26488d408a4164ae74e9b29e13c1df4c8f2f3 /docs_theme | |
| parent | df33538f141f5d5d4a9f905a56cad0f881fb20de (diff) | |
| download | django-rest-framework-5a6bdd01ba9f8731c0963c355b41839860a5a4de.tar.bz2 | |
Highlight H1's in the TOC
Diffstat (limited to 'docs_theme')
| -rw-r--r-- | docs_theme/base.html | 21 |
1 files changed, 15 insertions, 6 deletions
diff --git a/docs_theme/base.html b/docs_theme/base.html index 544e2188..02be73ee 100644 --- a/docs_theme/base.html +++ b/docs_theme/base.html @@ -106,12 +106,21 @@ <div id="table-of-contents"> <ul class="nav nav-list side-nav well sidebar-nav-fixed"> {% for toc_item in toc %} - <li class="{% if loop.first %}main{% endif %} {% if toc_item.active %}main{% endif %}"><a href="{{ toc_item.url }}">{{ toc_item.title }}</a> - </li> - {% for toc_item in toc_item.children %} - <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' %} + + <li class="main {% if toc_item.active %}main{% endif %}"> + <a href="{{ toc_item.url }}">{{ toc_item.title }}</a> + </li> + + {% for toc_item in toc_item.children %} + <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> |
