diff --git a/templates/archives.html b/templates/archives.html
index 24fea14c710c28ac202de5116f2a92b576876364..d8ba01ea87ac667d26abab044a2a07ad54c1544a 100644
--- a/templates/archives.html
+++ b/templates/archives.html
@@ -6,19 +6,19 @@
 
                 <h1>Archives</h1>
 
-				{#- hold on to your butts! #}
+                {#- hold on to your butts! #}
 
-                {% set month = None -%}
+                {% set ctx = {'month': None} -%}
                 {%- for article in dates -%}
                 {% set cmonth = article.date.date().replace(day=1) %}
-                {%- if not month -%}
-                {%   set month = cmonth %}
+                {%- if not ctx.month -%}
+                {%   if ctx.update(month=cmonth) %}{% endif %}
 
                 <h4 class="date">{{ article.date.strftime("%b %Y") }}</h4>
                 <div class="post archives">
                     <ul>
-                {%- elif cmonth < month -%}
-                {%   set month = cmonth %}
+                {%- elif cmonth < ctx.month -%}
+                {%   if ctx.update(month=cmonth) %}{% endif %}
 
                     </ul>
                     <br />