mirror of
https://github.com/reactjs/react.dev.git
synced 2026-02-23 20:23:08 +00:00
42 lines
1.3 KiB
HTML
42 lines
1.3 KiB
HTML
<div class="nav-docs">
|
|
<!-- Docs Nav -->
|
|
{% for section in site.nav_docs_sections %}
|
|
<div class="nav-docs-section">
|
|
<h3>{{ section.title }}</h3>
|
|
<ul>
|
|
{% for item in section.items %}
|
|
<li>
|
|
<a href="/react/docs/{{ item.id }}.html"{% if page.id == item.id %} class="active"{% endif %}>
|
|
{{ item.title }}
|
|
</a>
|
|
{% if item.subitems %}
|
|
<ul>
|
|
{% for subitem in item.subitems %}
|
|
<li>
|
|
<a href="/react/docs/{{ subitem.id }}.html"{% if page.id == subitem.id %} class="active"{% endif %}>
|
|
{{ subitem.title }}
|
|
</a>
|
|
</li>
|
|
{% endfor %}
|
|
</ul>
|
|
{% endif %}
|
|
</li>
|
|
{% endfor %}
|
|
</ul>
|
|
</div>
|
|
{% endfor %}
|
|
|
|
<!-- Cookbook Nav -->
|
|
{% for section in site.nav_cookbook %}
|
|
<div class="nav-docs-section">
|
|
<h3>{{ section.title }}</h3>
|
|
<ul>
|
|
{% for item in section.items %}
|
|
<li>
|
|
<a href="/react/cookbook/{{ item.id }}.html"{% if page.id == item.id %} class="active"{% endif %}>{{ item.title }}</a>
|
|
</li>
|
|
{% endfor %}
|
|
</ul>
|
|
</div>
|
|
{% endfor %}
|
|
</div> |