mirror of
https://github.com/encode/django-rest-framework.git
synced 2024-11-25 11:04:02 +03:00
Fix side nav in project docs
This commit is contained in:
parent
908516f2bd
commit
a4c2d4f0d5
|
@ -91,12 +91,12 @@
|
||||||
|
|
||||||
{% for toc_item in page.toc %}
|
{% for toc_item in page.toc %}
|
||||||
<li class="{% if page and not page.is_homepage %}main{% endif %}">
|
<li class="{% if page and not page.is_homepage %}main{% endif %}">
|
||||||
<a href="{{ toc_item.url|url }}">{{ toc_item.title }}</a>
|
<a href="{{ toc_item.url }}">{{ toc_item.title }}</a>
|
||||||
</li>
|
</li>
|
||||||
|
|
||||||
{% for toc_item in toc_item.children %}
|
{% for toc_item in toc_item.children %}
|
||||||
<li>
|
<li>
|
||||||
<a href="{{ toc_item.url|url }}">{{ toc_item.title }}</a>
|
<a href="{{ toc_item.url }}">{{ toc_item.title }}</a>
|
||||||
</li>
|
</li>
|
||||||
{% endfor %}
|
{% endfor %}
|
||||||
{% endfor %}
|
{% endfor %}
|
||||||
|
|
Loading…
Reference in New Issue
Block a user