github.com/oweisse/u-root@v0.0.0-20181109060735-d005ad25fef1/docs/nav.html (about)

     1  <div class="navbar navbar-default navbar-fixed-top" role="navigation">
     2      <div class="container">
     3  
     4          <!-- Collapsed navigation -->
     5          <div class="navbar-header">
     6              {% if include_nav or include_next_prev or repo_url %}
     7              <!-- Expander button -->
     8              <button type="button" class="navbar-toggle" data-toggle="collapse" data-target=".navbar-collapse">
     9                  <span class="sr-only">Toggle navigation</span>
    10                  <span class="icon-bar"></span>
    11                  <span class="icon-bar"></span>
    12                  <span class="icon-bar"></span>
    13              </button>
    14              {% endif %}
    15  
    16              <!-- Main title -->
    17              <a class="navbar-brand" href="{{ homepage_url }}">{{ site_name }}</a>
    18          </div>
    19  
    20          <!-- Expanded navigation -->
    21          <div class="navbar-collapse collapse">
    22              {% if include_nav %}
    23                  <!-- Main navigation -->
    24                  <ul class="nav navbar-nav">
    25                  {% for nav_item in nav %}
    26                  {% if nav_item.children %}
    27                      <li class="dropdown{% if nav_item.active %} active{% endif %}">
    28                          <a href="#" class="dropdown-toggle" data-toggle="dropdown">{{ nav_item.title }} <b class="caret"></b></a>
    29                          <ul class="dropdown-menu">
    30                          {% for nav_item in nav_item.children %}
    31                              {% include "nav-sub.html" %}
    32                          {% endfor %}
    33                          </ul>
    34                      </li>
    35                  {% else %}
    36                      <li {% if nav_item.active %}class="active"{% endif %}>
    37                          <a href="{{ nav_item.url }}">{{ nav_item.title }}</a>
    38                      </li>
    39                  {% endif %}
    40                  {% endfor %}
    41                  </ul>
    42              {% endif %}
    43  
    44              <ul class="nav navbar-nav navbar-right">
    45                  <li>
    46                      <a href="#" data-toggle="modal" data-target="#mkdocs_search_modal">
    47                          <i class="fa fa-search"></i> Search
    48                      </a>
    49                  </li>
    50                  {% if include_next_prev %}
    51                      <li {% if not previous_page %}class="disabled"{% endif %}>
    52                          <a rel="next" {% if previous_page %}href="{{ previous_page.url }}"{% endif %}>
    53                              <i class="fa fa-arrow-left"></i> Previous
    54                          </a>
    55                      </li>
    56                      <li {% if not next_page %}class="disabled"{% endif %}>
    57                          <a rel="prev" {% if next_page %}href="{{ next_page.url }}"{% endif %}>
    58                              Next <i class="fa fa-arrow-right"></i>
    59                          </a>
    60                      </li>
    61                  {% endif %}
    62                  {% if repo_url %}
    63                      <li>
    64                          <a href="{{ repo_url }}">
    65                              {% if repo_name == 'GitHub' %}
    66                                  <i class="fa fa-github"></i>
    67                              {% elif repo_name == 'Bitbucket' %}
    68                                  <i class="fa fa-bitbucket"></i>
    69                              {% endif %}
    70                              {{ repo_name }}
    71                          </a>
    72                      </li>
    73                  {% endif %}
    74              </ul>
    75          </div>
    76      </div>
    77  </div>