{% extends 'layout.html' %}


{% set crumbs = (('News', 'news/'), ('Archives', 'news/archives/'), (archive.year,)) %}

{% block content %}
    <dl class="archives">
        {% for month in archive.months|values %}
            {% for post in month %}
                <dt class="archives-post-date">{{ post.timestamp|date('%b %d') }}</dt>
                <dd class="archives-post-title"><a href="{{ get_url(post.url) }}">{{ post.title }}</a></dd>
                
                {% if post.tags %}
                    <dd class="archives-post-tags">Tagged <span>»</span> {% for tag in post.tags %}<a href="{{ get_url(posts.tags[tag].url) }}">{{ tag }}</a>{% if not loop.last %}, {% endif %}{% endfor %}</dd>
                {% endif %}
            {% endfor %}
        {% endfor %}
    </dl>
{% endblock %}
