Tweak front page time delays and listings a bit.

This commit is contained in:
Bradley M. Kuhn 2021-03-23 18:54:52 -07:00
parent 07cece4b6c
commit 90749c7d71

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:":5" %} {% for pressr in press_releases|slice:":1" %}
{% 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 %}
@ -39,7 +39,7 @@
<div class="column"> <div class="column">
<h2><a href="/feeds/blog/" class="feedlink"><img src="/img/feed-icon-14x14.png" alt="[RSS]"/></a> <a href="/blog/">Conservancy Blog</a></h2> <h2><a href="/feeds/blog/" class="feedlink"><img src="/img/feed-icon-14x14.png" alt="[RSS]"/></a> <a href="/blog/">Conservancy Blog</a></h2>
{% for entry in blog|slice:":5" %} {% for entry in blog|slice:":5" %}
{% if forloop.first or entry.pub_date|date_within_past_days:45 %} {% if forloop.first or entry.pub_date|date_within_past_days:90 %}
{% if not forloop.first %}<hr class="clear">{% endif %} {% if not forloop.first %}<hr class="clear">{% endif %}
{% include "blog/entry_partial.html" with entry=entry show="summary" only %} {% include "blog/entry_partial.html" with entry=entry show="summary" only %}
{% endif %} {% endif %}