{% extends "note_base.html" %}
{% load notes_extras %}

{% block title %}Archive {{ year }} – Notes{% endblock %}

{% block content %}
<h2>Archive {{ year }}</h2>

{% if months %}
<ul>
  {% for month in months %}
    <li><a href="{{ month.published_month }}/">{{ month.published_month|month_name }}</a> ({{ month.total }})</li>
  {% endfor %}
</ul>
{% else %}
<p>No notes</p>
{% endif %}
{% endblock %}