Try two press releases at a time on the front page.

This commit is contained in:
Bradley M. Kuhn 2021-05-14 08:16:14 -07:00
parent 24f7b3ec74
commit a72ff8377c

View file

@ -26,7 +26,7 @@
<div class="column"> <div class="column">
<h2><a href="/feeds/news/" class="feedlink"><img src="/img/feed-icon-14x14.png" alt="[RSS]"/></a> <a href="/news/">Recent News</a></h2> <h2><a href="/feeds/news/" class="feedlink"><img src="/img/feed-icon-14x14.png" alt="[RSS]"/></a> <a href="/news/">Recent News</a></h2>
{% for pressr in press_releases|slice:":1" %} {% for pressr in press_releases|slice:":2" %}
{% if forloop.first or pressr.pub_date|date_within_past_days:90 %} {% if forloop.first or pressr.pub_date|date_within_past_days:90 %}
{% if not forloop.first %}<hr class="clear">{% endif %} {% if not forloop.first %}<hr class="clear">{% endif %}
{% include "news/pressrelease_partial.html" with pressr=pressr show="summary" only %} {% include "news/pressrelease_partial.html" with pressr=pressr show="summary" only %}