{% comment %} Used by the reading_years_card template tag. Expects: * current_year: A date object representing the current year, if any. * years: A QuerySet of date objects, one for each year to link to. {% endcomment %} {% if years|length > 0 %} {% load spectator_core %} {% current_url_name as url_name %}