From 4a7410366f1429755923c7e379fc079e7318e9bb Mon Sep 17 00:00:00 2001 From: Ben Sturmfels Date: Sat, 11 Feb 2023 17:23:08 +1100 Subject: [PATCH] Show summary for first news item on front page --- www/conservancy/templates/frontpage.html | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/www/conservancy/templates/frontpage.html b/www/conservancy/templates/frontpage.html index 85b53d8d..8c2873fa 100644 --- a/www/conservancy/templates/frontpage.html +++ b/www/conservancy/templates/frontpage.html @@ -70,8 +70,9 @@ v.textTracks[0].mode = "showing";

News

{% for pressr in press_releases|slice:":4" %} - {% if forloop.first or pressr.pub_date|date_within_past_days:365 %} - {% if not forloop.first %}
{% endif %} + {% if forloop.first %} + {% include "news/pressrelease_partial.html" with pressr=pressr show="summary" only %} + {% else %} {% include "news/pressrelease_partial.html" with pressr=pressr show="dateline" only %} {% endif %} {% endfor %} @@ -107,7 +108,7 @@ v.textTracks[0].mode = "showing";