From cb8f62370dc7a7217cc0e96fc25ba64283a690e3 2014-05-01 23:27:04 From: Martin Michlmayr Date: 2014-05-01 23:27:04 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. --- diff --git a/www/conservancy/templates/frontpage.html b/www/conservancy/templates/frontpage.html index 20bc785d47ca14c742f9b08d3511929f36f644fb..a42069c6179c550ef3a4ef1bfc1cf1b5dea4353e 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…