Allow for two news items at once on the frontpage.
This commit is contained in:
parent
6992f63bb4
commit
654453c1c2
2 changed files with 8 additions and 0 deletions
|
@ -167,6 +167,7 @@ h3 { margin-top: .6em; margin-bottom: .4em; }
|
|||
|
||||
.column h2 { font-size: 1.25em; }
|
||||
.column h3 { font-size: 1.1em; }
|
||||
.column hr { width: 50%; align: center; }
|
||||
|
||||
.column h2 a { text-decoration: none; color: #000000; }
|
||||
.column h2 a:hover { text-decoration: underline; }
|
||||
|
|
|
@ -52,6 +52,13 @@
|
|||
<h3><a href="{{ press_releases.0.get_absolute_url }}">{{ press_releases.0.headline|safe }}</a></h3>
|
||||
{{ 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.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>
|
||||
{% endif %}
|
||||
<p><span class="continued"><a href="/news/">Conservancy News
|
||||
|
|
Loading…
Reference in a new issue