Source

cmsplugin-news / cmsplugin_news / templates / cmsplugin_news / news_archive_year.html

1
2
3
4
5
6
7
8
<h1>News for {{ year }}</h1>
<ul>
    {% for date in date_list %}
        <li><a href="{% url news_archive_month year=year month=date|date:'m'  %}">{{ date|date:"F" }}</a></li>
    {% empty %}
        <li>No news for this year</li>
    {% endfor %}
</ul>