diff --git a/theme/templates/archives.html b/theme/templates/archives.html
index cd48357..aacb35e 100644
--- a/theme/templates/archives.html
+++ b/theme/templates/archives.html
@@ -34,12 +34,12 @@ Full archives of {{ SITENAME|striptags|e }} blog.
- {% set last_year = 0 %}
+ {% set last_year = {'lastyear': 0} %}
{% for article in dates %}
{% set year = article.date.strftime('%Y') %}
- {%if last_year != year %}
+ {%if last_year.lastyear != year %}