mirror of
https://github.com/encode/django-rest-framework.git
synced 2024-11-24 18:44:00 +03:00
fix: update side nav
This commit is contained in:
parent
e294ad7a70
commit
4f7f4ab054
|
@ -67,30 +67,35 @@
|
||||||
<div class="row">
|
<div class="row">
|
||||||
<div class="col-3">
|
<div class="col-3">
|
||||||
<div id="table-of-contents">
|
<div id="table-of-contents">
|
||||||
<!-- <ul class="nav nav-list side-nav well sidebar-nav-fixed">
|
<ul class="nav flex-column">
|
||||||
{% if page and page.is_homepage %}
|
{% if page and page.is_homepage %}
|
||||||
<li class="main">
|
<a
|
||||||
<a href="#">Django REST framework</a>
|
href="#"
|
||||||
</li>
|
class="nav-link {% if page and page.is_homepage %} fw-bold {% endif %}"
|
||||||
{% endif %}
|
>Django REST framework</a
|
||||||
|
>
|
||||||
{% for toc_item in page.toc %}
|
{% endif %} {% for toc_item in page.toc %}
|
||||||
<li class="{% if page and not page.is_homepage %}main{% endif %}">
|
<a
|
||||||
<a href="{{ toc_item.url }}">{{ toc_item.title }}</a>
|
href="{{ toc_item.url }}"
|
||||||
</li>
|
class="nav-link {% if page and not page.is_homepage %}main{% endif %}"
|
||||||
|
>{{ toc_item.title }}</a
|
||||||
|
>
|
||||||
|
|
||||||
{% for toc_item in toc_item.children %}
|
{% for toc_item in toc_item.children %}
|
||||||
<li>
|
<li>
|
||||||
<a href="{{ toc_item.url }}">{{ toc_item.title }}</a>
|
<a class="nav-link" href="{{ toc_item.url }}"
|
||||||
</li>
|
>{{ toc_item.title }}</a
|
||||||
{% endfor %}
|
>
|
||||||
{% endfor %}
|
</li>
|
||||||
|
{% endfor %} {% endfor %}
|
||||||
|
|
||||||
<div class="promo">
|
<div class="promo">
|
||||||
{% if page.toc %}<hr/>{% endif %}
|
{% if page.toc %}
|
||||||
<div id="sidebarInclude">
|
<hr />
|
||||||
|
{% endif %}
|
||||||
</div>
|
</div>
|
||||||
</ul> -->
|
<div id="sidebarInclude"></div>
|
||||||
|
</ul>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user