grav-theme-libretic/templates/partials/archives.html.twig

13 lines
378 B
Twig
Raw Normal View History

2015-01-22 17:14:47 +01:00
<ul class="archives">
{% for month,items in archives_data %}
<li>
<a href="{{ base_url }}/archives_month{{ config.system.param_sep }}{{ month|date('M_Y')|lower|e('url') }}">
2015-01-22 17:29:21 +01:00
<span class="archive_date">{{ month }}</span>
2015-01-22 17:14:47 +01:00
{% if archives_show_count %}
2015-01-22 17:29:21 +01:00
<span>({{ items|length }})</span>
2015-01-22 17:14:47 +01:00
{% endif %}
</a>
</li>
{% endfor %}
</ul>