Sha256: 70e1293b0cae4a73346f3f1daffcae67e85a5eb33c8a3f4f241292a754eb99ba

Contents?: true

Size: 1 KB

Versions: 7

Compression:

Stored size: 1 KB

Contents

---
layout: page
---

{% assign categories = site.categories | sort %}

<ul class="accordion" data-accordion data-allow-all-closed="true">
    {% for category_list in categories %}
    {% assign category = category_list | first %}
    {% assign posts = category_list | last %}
    <li class="accordion-item" data-accordion-item>
        <!-- Accordion tab title -->
        <a href="#" class="accordion-title">
            <i data-feather="folder"></i>
            {{- category | upcase -}}
        </a>

        <!-- Accordion tab content: it would start in the open state due to using the `is-active` state class. -->
        <div class="accordion-content" data-tab-content>
            <ul class="no-bullet">
                {% for post in posts %}
                <li>
                    <a href="{{ post.url | prepend: site.base_url }}">
                        {{- post.title -}}
                    </a>
                </li>
                {% endfor %}
            </ul>
        </div>
    </li>
    {% endfor %}
</ul>

Version data entries

7 entries across 7 versions & 1 rubygems

Version Path
jekyll-bhautiki-0.1.6 _layouts/categories.html
jekyll-bhautiki-0.1.5 _layouts/categories.html
jekyll-bhautiki-0.1.4 _layouts/categories.html
jekyll-bhautiki-0.1.3 _layouts/categories.html
jekyll-bhautiki-0.1.2 _layouts/categories.html
jekyll-bhautiki-0.1.1 _layouts/categories.html
jekyll-bhautiki-0.1.0 _layouts/categories.html