Show summary for first news item on front page

This commit is contained in:
Ben Sturmfels 2023-02-11 17:23:08 +11:00
parent 4ceb4b4ae2
commit 4a7410366f
Signed by: bsturmfels
GPG key ID: 023C05E2C9C068F0

View file

@ -70,8 +70,9 @@ v.textTracks[0].mode = "showing";
<section class="mv3 ph2">
<h2 class="f4 mt0 mb2 ttu"><!--<a href="/feeds/news/" class="feedlink"><img src="/img/feed-icon-14x14.png" alt="[RSS]"/></a>--> <a href="/news/" class="dark-gray">News</a></h2>
{% for pressr in press_releases|slice:":4" %}
{% if forloop.first or pressr.pub_date|date_within_past_days:365 %}
{% if not forloop.first %}<hr class="clear">{% 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";
<div class="mh3 pt3">
<h2 class="f6 ttu mb1"><a href="https://lists.sfconservancy.org/mailman/listinfo/announce">Subscribe to our email list</a></h2>
<br>
<h2 class="f6 ttu mt2 mb1">RSS feed</h2>