Sha256: 3252ca55e63122d62339838b20322b4e361957062057d5a4b06b89ba74fa0be9

Contents?: true

Size: 1.72 KB

Versions: 18

Compression:

Stored size: 1.72 KB

Contents

{% assign sub-nav-tabs = site.data.sub-nav.pages %}
{% if sub-nav-tabs %}
    {% assign page-base =  page.url | split:'/' %}
    {% for each in sub-nav-tabs %}
        {% for each-url in each.urls %}
            {% if each-url == page.url or each.url == page-base[1] %}
                {% assign tab-list = each.list %}
            {% endif %}
        {% endfor %}
    {% endfor %}
    {% if tab-list %}
        <div class="tabbed-area" id="tabbed-nav-bar"><!-- Nav tabs -->
        <nav class="navbar-default" role="navigation">
        <div class="container">
            <div class="navbar-header">
                    <button type="button" class="navbar-toggle" data-toggle="collapse" data-target="#tabbed-nav-bar-collapse">
                        <span class="sr-only">Toggle navigation</span>
                        <span class="icon-bar"></span>
                        <span class="icon-bar"></span>
                        <span class="icon-bar"></span>
                    </button>
                    <a class="navbar-brand" id="sub-navigation-header" href=""></a>
                </div>
                <div class="collapse navbar-collapse" id="tabbed-nav-bar-collapse">
                    <ul class="nav nav-tabs tabbed-nav" id="tab-row" role="tablist">
                        {% for tab in tab-list %}
                            <li role="presentation" class="{% if page-base[1] == tab.base  %}active {% elsif page.url == tab.url or tab.active %}active {% endif %}tabbed-nav-btn {% if tab.right %}pull-right{% endif %}"><a href="{{tab.url}}" role="link">{{ tab.title | capitalize}}</a></li>
                        {% endfor %}
                    </ul>
            </div>
        </div>
        </nav>
        </div>
    {% endif %}
{% endif %}

Version data entries

18 entries across 18 versions & 1 rubygems

Version Path
linaro-jekyll-theme-0.5.3 _includes/_theme-includes/_navigation/tabbed-nav.html
linaro-jekyll-theme-0.5.2 _includes/_theme-includes/_navigation/tabbed-nav.html
linaro-jekyll-theme-0.5.1 _includes/_theme-includes/_navigation/tabbed-nav.html
linaro-jekyll-theme-0.5.0 _includes/_theme-includes/_navigation/tabbed-nav.html
linaro-jekyll-theme-0.4.9 _includes/_theme-includes/_navigation/tabbed-nav.html
linaro-jekyll-theme-0.4.8 _includes/_theme-includes/_navigation/tabbed-nav.html
linaro-jekyll-theme-0.4.7 _includes/_theme-includes/_navigation/tabbed-nav.html
linaro-jekyll-theme-0.4.6 _includes/_theme-includes/_navigation/tabbed-nav.html
linaro-jekyll-theme-0.4.5 _includes/_theme-includes/_navigation/tabbed-nav.html
linaro-jekyll-theme-0.4.4 _includes/_theme-includes/_navigation/tabbed-nav.html
linaro-jekyll-theme-0.4.3 _includes/_theme-includes/_navigation/tabbed-nav.html
linaro-jekyll-theme-0.4.2 _includes/_theme-includes/_navigation/tabbed-nav.html
linaro-jekyll-theme-0.4.1 _includes/_theme-includes/_navigation/tabbed-nav.html
linaro-jekyll-theme-0.4.0 _includes/_theme-includes/_navigation/tabbed-nav.html
linaro-jekyll-theme-0.3.9 _includes/_theme-includes/_navigation/tabbed-nav.html
linaro-jekyll-theme-0.3.8 _includes/_theme-includes/_navigation/tabbed-nav.html
linaro-jekyll-theme-0.3.7 _includes/_theme-includes/_navigation/tabbed-nav.html
linaro-jekyll-theme-0.3.6 _includes/_theme-includes/_navigation/tabbed-nav.html