Files @ 170aa38bb5c3
Branch filter:

Location: website/www/conservancy/templates/news/pressrelease_detail.html

brett
blog: Headlines clear floats.

This avoids a situation where multiple summaries have floats that stack on
top of each other vertically, which end up getting far away from the actual
text.

In order to make this work, we had to change the styling of #mainContent on
blog pages (and others with a sidebar). Otherwise, headlines with
class="clear" would clear the sidebar as well.
{% extends "base_news.html" %}

{% block subtitle %}{{ object.headline|striptags }} - {% endblock %}

{% block content %}

<div id="mainContent">
<p class="date">{{ object.pub_date|date:"F j, Y" }}</p>
<h2>{{ object.headline|safe }}</h2>
{% if object.subhead %}
<h3>{{ object.subhead|safe }}</h3>
{% endif %}

{{ object.summary|safe }}

{{ object.body|safe }}
</div>
{% endblock %}