From d09c87632100739e47f2423966a2448adfd41a88 Mon Sep 17 00:00:00 2001
From: Mike Kazantsev <mk.fraggod@gmail.com>
Date: Thu, 9 Feb 2017 12:17:28 +0500
Subject: [PATCH] Fix archives page with Jinja>=2.9

---
 templates/archives.html | 12 ++++++------
 1 file changed, 6 insertions(+), 6 deletions(-)

diff --git a/templates/archives.html b/templates/archives.html
index 24fea14..d8ba01e 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 />
-- 
GitLab