{% set series = __SELF__.series %}

{% if series | length %}
    <div class="list-group">
        {% for item in series %}
            {% set postCount = item.posts_count %}
            <a href="{{ item.url }}" class="list-group-item">
                {{ item.title }}
                {% if postCount %}
                    <span class="badge">{{ postCount }}</span>
                {% endif %}
            </a>
        {% endfor %}
    </div>
{% else %}
    {{ "ginopane.blogtaxonomy::lang.components.series_list.no_series_message" | trans }}
{% endif %}