Sha256: e4ad26d8b52370e9732c936c12593bbd95bf714a48999b296e47f4c1fdd5afa7

Contents?: true

Size: 1.33 KB

Versions: 1

Compression:

Stored size: 1.33 KB

Contents

    {% assign default_paths = site.pages | map: "path" %}
    {% assign page_paths = site.header_pages | default: default_paths %}
      <nav class="navbar navbar-expand-md navbar-dark bg-dark fixed-top">
      <a class="navbar-brand" href="{{ site.baseurl}}{% link index.md %}">{{ site.title }}</a>
      <button class="navbar-toggler" type="button" data-toggle="collapse" data-target="#navbarsExampleDefault" aria-controls="navbarsExampleDefault" aria-expanded="false" aria-label="Toggle navigation">
        <span class="navbar-toggler-icon"></span>
      </button>

      <div class="collapse navbar-collapse" id="navbarsExampleDefault">
        <ul class="navbar-nav mr-auto">
        
          <li class="nav-item">
            <a class="nav-link" href="{{ site.baseurl}}{% link index.md %}">Home <span class="sr-only">(current)</span></a>
          </li>
          
          {% if page_paths %}
            {% for path in page_paths %}
            {% assign my_page = site.pages | where: "path", path | first %}
            {% if my_page.title %}
              <li class="nav-item">
                <a class="nav-link" href="{{ my_page.url | relative_url }}">{{ my_page.title | escape}}</a>
              </li>
            {% endif %}
            {% endfor %}
          {% endif %}
          
        </ul>
      </div>
    </nav>

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
jekyll-theme-bootstrap20avva-0.1.0 _includes/header.html