Source

jilcrow / example-site / templates / archive_year.html

{% extends "base.html" %}

{% block content %}
    {% if title %}
        <h1>{{ title }}</h1>
    {% endif %}

    <ul>
        {% for entry in entries %}
            <li>
                <a href="{{ entry.url }}">{{ entry.title }}</a>
                ({{ entry.date.day }} {{ entry.month_name[:3] }})
            </li>
        {% endfor %}
    </ul>
{% endblock %}

{% block footer %}
    <p>
        <a href="{{ root }}">Home</a>

        {% for y in years %}
            <span class="sep">|</span>

            {% if year == y %}
                <span class="selected">{{ y }}</span>
            {% else %}
                <a href="{{ get(y).url }}">{{ y }}</a>
            {% endif %}
        {% endfor %}
    </p>
{% endblock %}