{% extends "base.html" %} {% block title %}Archive | {{ SITENAME }}{% endblock %} {% set current = "archive" %} {% set url = "archives.html" %} {% macro countyear(year) %} {% set name = namespace(y=0) %} {% for article in dates %} {% if article.date | strftime('%Y') == year %} {% set name.y = name.y + 1 %} {% endif %} {% endfor %} {{name.y}} {% endmacro %} {% macro countmonth(month, year) %} {% set name = namespace(m=0) %} {% for article in dates %} {% if article.date | strftime('%B') == month and article.date | strftime('%Y') == year %} {% set name.m = name.m + 1 %} {% endif %} {% endfor %} {{name.m}} {% endmacro %} {% block content %}