mirror of
https://github.com/facebook/react.git
synced 2025-11-01 09:12:30 +00:00
6c19040d24
This doesn't actually remove the pages, just the main content. Sidebar items now link offsite. The pages doesn't automatically redirect, but we could do that if we really wanted. Fixes #2229
39 lines
1021 B
HTML
39 lines
1021 B
HTML
<div class="nav-docs">
|
|
<!-- Docs Nav -->
|
|
{% for section in site.data.nav_docs %}
|
|
<div class="nav-docs-section">
|
|
<h3>{{ section.title }}</h3>
|
|
<ul>
|
|
{% for item in section.items %}
|
|
<li>
|
|
{{ item | sidebar_item_link}}
|
|
{% if item.subitems %}
|
|
<ul>
|
|
{% for subitem in item.subitems %}
|
|
<li>
|
|
{{ item | sidebar_item_link}}
|
|
</li>
|
|
{% endfor %}
|
|
</ul>
|
|
{% endif %}
|
|
</li>
|
|
{% endfor %}
|
|
</ul>
|
|
</div>
|
|
{% endfor %}
|
|
|
|
<!-- Tips Nav -->
|
|
{% for section in site.data.nav_tips %}
|
|
<div class="nav-docs-section">
|
|
<h3>{{ section.title }}</h3>
|
|
<ul>
|
|
{% for item in section.items %}
|
|
<li>
|
|
<a href="/react/tips/{{ item.id }}.html"{% if page.id == item.id %} class="active"{% endif %}>{{ item.title }}</a>
|
|
</li>
|
|
{% endfor %}
|
|
</ul>
|
|
</div>
|
|
{% endfor %}
|
|
</div>
|