Display summary for first news item

This commit is contained in:
Ben Sturmfels 2023-02-08 22:51:51 +11:00
parent 0e03baf3c3
commit 5da27dd12a

View file

@ -13,7 +13,7 @@
{% ifnotequal news.number 1 %}<p>(Page {{ news.number }} of {{ news.paginator.num_pages }})</p>{% endifnotequal %} {% ifnotequal news.number 1 %}<p>(Page {{ news.number }} of {{ news.paginator.num_pages }})</p>{% endifnotequal %}
{% for pressr in news %} {% for pressr in news %}
{% if pressr.is_recent %} {% if forloop.first %}
{% include "news/pressrelease_partial.html" with pressr=pressr show="summary" only %} {% include "news/pressrelease_partial.html" with pressr=pressr show="summary" only %}
{% else %} {% else %}
{% include "news/pressrelease_partial.html" with pressr=pressr show="dateline" only %} {% include "news/pressrelease_partial.html" with pressr=pressr show="dateline" only %}