Source

Django-Portfolio / templates / blog / base.html

Full commit
{% extends "layouts/base.html" %}

{% block sidebar%}
{{ block.super }}
<header>
    <h2>The Post Archive</h2>
</header>

<ol>
    {% for year in date_list %}
        <li><a href="{% url year blog.slug year|date:"Y" %}">{{ year|date:"Y" }}</a></li>
    {% endfor %}
</ol>
{% endblock %}