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:
parent
de0b3fbb09
commit
cb8f62370d
1 changed files with 4 additions and 2 deletions
|
@ -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…</a></span></p>
|
from {{ blog.0.author.casual_name }} on this…</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…</a></span></p>
|
from {{ blog.1.author.casual_name }} on this…</a></span></p>
|
||||||
{% endif %}
|
|
||||||
</div>
|
</div>
|
||||||
|
{% endif %}
|
||||||
<p><span class="continued"><a href="/blog/">Conservancy Blog Archive…</a></span></p>
|
<p><span class="continued"><a href="/blog/">Conservancy Blog Archive…</a></span></p>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
Loading…
Reference in a new issue