Fix HTML </div> error on frontpage

One too many <div> 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.
This commit is contained in:
Martin Michlmayr 2014-05-01 19:27:04 -04:00
parent de0b3fbb09
commit cb8f62370d

View file

@ -95,18 +95,20 @@ on {{ blog.0.pub_date|date:"F j, Y" }}</p>
{{ blog.0.summary|safe }} {{ blog.0.summary|safe }}
<p><span class="continued"><a href="{{ blog.0.get_absolute_url }}">Read More <p><span class="continued"><a href="{{ blog.0.get_absolute_url }}">Read More
from {{ blog.0.author.casual_name }} on this&hellip;</a></span></p> from {{ blog.0.author.casual_name }} on this&hellip;</a></span></p>
</div>
{% endif %} {% endif %}
{% if blog.1.is_recent %} {% if blog.1.is_recent %}
<hr/> <hr/>
<div class="shaded">
<h3><a href="{{ blog.1.get_absolute_url }}">{{ blog.1.headline|safe }}</a></h3> <h3><a href="{{ blog.1.get_absolute_url }}">{{ blog.1.headline|safe }}</a></h3>
<p class="date">Posted by {{ blog.1.author.formal_name }} <p class="date">Posted by {{ blog.1.author.formal_name }}
on {{ blog.1.pub_date|date:"F j, Y" }}</p> on {{ blog.1.pub_date|date:"F j, Y" }}</p>
{{ blog.1.summary|safe }} {{ blog.1.summary|safe }}
<p><span class="continued"><a href="{{ blog.0.get_absolute_url }}">Read More <p><span class="continued"><a href="{{ blog.0.get_absolute_url }}">Read More
from {{ blog.1.author.casual_name }} on this&hellip;</a></span></p> from {{ blog.1.author.casual_name }} on this&hellip;</a></span></p>
{% endif %}
</div> </div>
{% endif %}
<p><span class="continued"><a href="/blog/">Conservancy Blog Archive&hellip;</a></span></p> <p><span class="continued"><a href="/blog/">Conservancy Blog Archive&hellip;</a></span></p>
</div> </div>
</div> </div>