Sha256: b94e88fa2fa20acf2c13c8e5f9fe952954695b28f7bfef35af960f7fbe4cd72f

Contents?: true

Size: 1.05 KB

Versions: 5

Compression:

Stored size: 1.05 KB

Contents

{% if include.category %}
    {% assign actual_category = include.category %}
{% elsif page.category %}
    {% assign actual_category = page.category %}
{% else %}
    {% assign cats = page.dir | split: '/'%}
    {% assign actual_category = cats[2] or cats[1] %}
{% endif %}

{% if actual_category %}
    <section class="box is-dark is-family-monospace">
        <p>
            <span class="has-text-grey">$:</span>
            ls
            <span class="has-text-weight-bold has-text-success">{{actual_category}}</span>/        
        </p>
        <div>
            {% for p in site.pages %}
                {% if p.title and p.url != page.url and p.category == actual_category or p.categories contains actual_category or p.dir contains actual_category %}
                    <span class="is-block">
                        <span class="has-text-grey">&gt;</span>
                        <a href="{{p.url}}">{{p.title}}</a>
                    </span>
                {% endif %}
            {% endfor %}
        </div>
    </section>
{% endif %}

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
jekyll-theme-opentoolbox-2.0.2 _includes/sub-pages.html
jekyll-theme-opentoolbox-2.0.1 _includes/sub-pages.html
jekyll-theme-opentoolbox-2.0.0 _includes/sub-pages.html
jekyll-theme-opentoolbox-1.1.0 _includes/sub-pages.html
jekyll-theme-opentoolbox-1.0.8 _includes/sub-pages.html