grav-theme-libretic/templates/partials/archives.html.twig
2015-01-22 17:29:21 +01:00

12 lines
350 B
Twig

<ul class="archives">
{% for month,items in archives_data %}
<li>
<a href="{{ base_url }}/archives_month:{{ month|date('M_Y')|lower|e('url') }}">
<span class="archive_date">{{ month }}</span>
{% if archives_show_count %}
<span>({{ items|length }})</span>
{% endif %}
</a>
</li>
{% endfor %}
</ul>