From cb8f62370dc7a7217cc0e96fc25ba64283a690e3 Mon Sep 17 00:00:00 2001 From: Martin Michlmayr Date: Thu, 1 May 2014 19:27:04 -0400 Subject: [PATCH] Fix HTML error on frontpage One too many
elements were closed when no blogs were displayed. Note that the logic between news and blogs is different: news opens one "shaded" div and puts all news in it. In the case of blogs, one "shaded" div is created for each blog entry displayed. --- www/conservancy/templates/frontpage.html | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/www/conservancy/templates/frontpage.html b/www/conservancy/templates/frontpage.html index 20bc785d..a42069c6 100644 --- a/www/conservancy/templates/frontpage.html +++ b/www/conservancy/templates/frontpage.html @@ -95,18 +95,20 @@ on {{ blog.0.pub_date|date:"F j, Y" }}

{{ blog.0.summary|safe }}

Read More from {{ blog.0.author.casual_name }} on this…

- +
{% endif %} + {% if blog.1.is_recent %}
+

{{ blog.1.headline|safe }}

Posted by {{ blog.1.author.formal_name }} on {{ blog.1.pub_date|date:"F j, Y" }}

{{ blog.1.summary|safe }}

Read More from {{ blog.1.author.casual_name }} on this…

-{% endif %}
+{% endif %}

Conservancy Blog Archive…