Display summary for first news item

This commit is contained in:
Ben Sturmfels 2023-02-08 22:51:51 +11:00
parent c64e52d9e6
commit 5c0c8edb69
Signed by: bsturmfels
GPG key ID: 023C05E2C9C068F0

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 %}