Sha256: bce7cdf4e618f951dacf25db8065d33ec4d82185744a4d2b302dd6a58015fb78

Contents?: true

Size: 1.38 KB

Versions: 5

Compression:

Stored size: 1.38 KB

Contents

<div class="explore">
    <div class="container">
        {%- if site.monumetricId -%}
        <div class="row">
            <div class="col-md-9 mx-auto">
                {%- endif -%}
                <h2>Explore <span class="d-none d-md-inline">→</span></h2>

                <ul class="mt-3">
                    {% assign categories_list = site.categories %}
                    {% if categories_list.first[0] == null %}
                    {% for category in categories_list %}
                    <a class="cat mt-1 mb-1"
                        href="/blog/categories#{{ category | url_escape | strip | replace: ' ', '-' }}">{{
                        category
                        |
                        camelcase }} ({{ site.tags[category].size }})</a>
                    {% endfor %}
                    {% else %}
                    {% for category in categories_list %}
                    <a class="cat mt-1 mb-1"
                        href="/blog/categories#{{ category[0] | url_escape | strip | replace: ' ', '-' }}">{{
                        category[0]
                        | camelcase }} ({{ category[1].size }})</a>
                    {% endfor %}
                    {% endif %}
                    {% assign categories_list = nil %}
                </ul>
                {%- if site.monumetricId -%}
            </div>
        </div>
        {%- endif -%}

    </div>
</div>

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
appscms-tools-theme-1.9.6 _includes/section/count.html
appscms-tools-theme-1.9.5 _includes/section/count.html
appscms-tools-theme-1.9.4 _includes/section/count.html
appscms-tools-theme-1.9.3 _includes/section/count.html
appscms-tools-theme-1.9.2 _includes/section/count.html