Use same logic for blogs as for news

Put the code for blog.1 within the if block of blog.0, as this is the
logic used for news.  As a result, the <hr> divider for blogs is now
in the "shaded" element (as it already is with news).
This commit is contained in:
Martin Michlmayr 2014-07-15 18:30:25 -04:00
parent 4802759d06
commit 6c75aa824d

View file

@ -95,11 +95,7 @@ on {{ blog.0.pub_date|date:"F j, Y" }}</p>
{{ blog.0.summary|safe }}
<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>
</div>
{% endif %}
{% if blog.1.is_recent %}
<div class="shaded">
<hr/>
<h3><a href="{{ blog.1.get_absolute_url }}">{{ blog.1.headline|safe }}</a></h3>
<p class="date">Posted by {{ blog.1.author.formal_name }}
@ -107,6 +103,7 @@ on {{ blog.1.pub_date|date:"F j, Y" }}</p>
{{ blog.1.summary|safe }}
<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>
{% endif %}
</div>
{% endif %}
<p><span class="continued"><a href="/blog/">Conservancy Blog Archive&hellip;</a></span></p>