{% for year, mths in months %}
{% for month, meta in mths %}
<a class="badge badge-secondary" href="{{ path('show_posts_by_month', { 'year': year, 'month': month })}}">{{ meta.label }}</a>
{% endfor %}