1
0
Fork 0
mirror of https://github.com/twbs/bootstrap.git synced 2022-11-09 12:25:43 -05:00

Merge pull request #18697 from bassjobsen/patch-31

remove `<div class="bd-sidebar">`
This commit is contained in:
Mark Otto 2016-01-03 19:13:44 -08:00
commit 5c43dff155

View file

@ -1,60 +1,57 @@
<div class="bd-sidebar"> <form class="bd-search hidden-sm-down">
<input type="text" class="form-control" id="search-input" placeholder="Search..." autocomplete="off">
<div class="dropdown-menu bd-search-results" id="search-results"></div>
</form>
<form class="bd-search hidden-sm-down"> <nav class="bd-links" id="docsNavbarContent">
<input type="text" class="form-control" id="search-input" placeholder="Search..." autocomplete="off"> {% for group in site.data.nav %}
<div class="dropdown-menu bd-search-results" id="search-results"></div> {% assign link = group.pages | first %}
</form> {% assign slug = group.title | downcase | replace: ' ', '-' || page.title | downcase | replace: ' ', '-' %}
{% assign active = nil %}
<nav class="bd-links" id="docsNavbarContent"> {% if page.url contains slug %}
{% for group in site.data.nav %} {% assign active = 'active' %}
{% assign link = group.pages | first %} {% endif %}
{% assign slug = group.title | downcase | replace: ' ', '-' || page.title | downcase | replace: ' ', '-' %}
{% assign active = nil %}
{% if page.url contains slug %} <div class="bd-toc-item {{ active }}">
{% assign active = 'active' %} {% if slug == "examples" %}
<a class="bd-toc-link" href="{{ site.baseurl }}/{{ group.title | downcase | replace: ' ', '-' }}/">
{% else %}
<a class="bd-toc-link" href="{{ site.baseurl }}/{{ group.title | downcase | replace: ' ', '-' }}/{{ link.title | downcase | replace: ' ', '-' || page.title | downcase | replace: ' ', '-' }}">
{% endif %} {% endif %}
{{ group.title }}
</a>
<div class="bd-toc-item {{ active }}"> <ul class="nav bd-sidenav">
{% if slug == "examples" %} {% for doc in group.pages %}
<a class="bd-toc-link" href="{{ site.baseurl }}/{{ group.title | downcase | replace: ' ', '-' }}/"> {% assign slug = doc.title | downcase | replace: ' ', '-' | replace:'-&-','-' %}
{% else %} {% assign active = nil %}
<a class="bd-toc-link" href="{{ site.baseurl }}/{{ group.title | downcase | replace: ' ', '-' }}/{{ link.title | downcase | replace: ' ', '-' || page.title | downcase | replace: ' ', '-' }}">
{% endif %}
{{ group.title }}
</a>
<ul class="nav bd-sidenav"> {% if page.url contains slug %}
{% for doc in group.pages %} {% assign active = 'active bd-sidenav-active' %}
{% assign slug = doc.title | downcase | replace: ' ', '-' | replace:'-&-','-' %} {% endif %}
{% assign active = nil %}
{% if page.url contains slug %} <li class="{{ active }}">
{% assign active = 'active bd-sidenav-active' %} <a href="{{ site.baseurl }}/{{ group.title | downcase | replace: ' ', '-' }}/{{ doc.title | downcase | replace: ' ', '-' | replace:'-&-','-' }}">
{% endif %} {{ doc.title }}
</a>
<li class="{{ active }}"> {% comment %}
<a href="{{ site.baseurl }}/{{ group.title | downcase | replace: ' ', '-' }}/{{ doc.title | downcase | replace: ' ', '-' | replace:'-&-','-' }}"> {% unless doc.sections == nil %}
{{ doc.title }} <ul class="nav">
</a> {% for section in doc.sections %}
<li>
{% comment %} <a href="#{{ section.title | downcase | replace: ' ', '-' }}">
{% unless doc.sections == nil %} {{ section.title }}
<ul class="nav"> </a>
{% for section in doc.sections %} </li>
<li> {% endfor %}
<a href="#{{ section.title | downcase | replace: ' ', '-' }}"> </ul>
{{ section.title }} {% endunless %}
</a> {% endcomment %}
</li> </li>
{% endfor %} {% endfor %}
</ul> </ul>
{% endunless %} </div>
{% endcomment %} {% endfor %}
</li> </nav>
{% endfor %}
</ul>
</div>
{% endfor %}
</nav>
</div>