Allow for two news items at once on the frontpage.

This commit is contained in:
Bradley M. Kuhn 2010-10-11 15:53:18 -04:00
parent 6992f63bb4
commit 654453c1c2
2 changed files with 8 additions and 0 deletions

View file

@ -167,6 +167,7 @@ h3 { margin-top: .6em; margin-bottom: .4em; }
.column h2 { font-size: 1.25em; } .column h2 { font-size: 1.25em; }
.column h3 { font-size: 1.1em; } .column h3 { font-size: 1.1em; }
.column hr { width: 50%; align: center; }
.column h2 a { text-decoration: none; color: #000000; } .column h2 a { text-decoration: none; color: #000000; }
.column h2 a:hover { text-decoration: underline; } .column h2 a:hover { text-decoration: underline; }

View file

@ -52,6 +52,13 @@
<h3><a href="{{ press_releases.0.get_absolute_url }}">{{ press_releases.0.headline|safe }}</a></h3> <h3><a href="{{ press_releases.0.get_absolute_url }}">{{ press_releases.0.headline|safe }}</a></h3>
{{ press_releases.0.summary|safe }} {{ press_releases.0.summary|safe }}
{% if press_releases.0.body %}<p><span class="continued"><a href="{{ press_releases.0.get_absolute_url }}">Read More...</a></span></p>{% endif %} {% if press_releases.0.body %}<p><span class="continued"><a href="{{ press_releases.0.get_absolute_url }}">Read More...</a></span></p>{% endif %}
{% if press_releases.1.pub_date|date_within_past_days:15 %}
<hr/>
<p class="date">{{ press_releases.1.pub_date|date:"F j, Y" }}</p>
<h3><a href="{{ press_releases.1.get_absolute_url }}">{{ press_releases.1.headline|safe }}</a></h3>
{{ press_releases.1.summary|safe }}
{% if press_releases.1.body %}<p><span class="continued"><a href="{{ press_releases.0.get_absolute_url }}">Read More...</a></span></p>{% endif %}
{% endif %}
</div> </div>
{% endif %} {% endif %}
<p><span class="continued"><a href="/news/">Conservancy News <p><span class="continued"><a href="/news/">Conservancy News