{% extends "note_base.html" %}

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

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

{% if years %}
<ul>
  {% for year in years %}
    <li><a href="{{ year.published_year }}/">{{ year.published_year }}</a> ({{ year.total }})</li>
  {% endfor %}
</ul>
{% else %}
<p>No notes</p>
{% endif %}
{% endblock %}