diff --git a/www/conservancy/templates/frontpage.html b/www/conservancy/templates/frontpage.html index 71c0a07818853cd6b3af316e71e9dd26fd376b26..c00a70f9ff57418c7ed2bb0798db3aa698c346a1 100644 --- a/www/conservancy/templates/frontpage.html +++ b/www/conservancy/templates/frontpage.html @@ -49,42 +49,12 @@
Posted by {{ blog.0.author.formal_name }} on {{ blog.0.pub_date|date:"F j, Y" }}
-{{ blog.0.summary|safe }} -Read More from {{ blog.0.author.casual_name }} on this…
- -{% if blog.1 and blog.1.pub_date|date_within_past_days:30 %} -Posted by {{ blog.1.author.formal_name }} on {{ blog.1.pub_date|date:"F j, Y" }}
-{{ blog.1.summary|safe }} -Read More from {{ blog.1.author.casual_name }} on this…
-{% endif %} - -{% if blog.2 and blog.2.pub_date|date_within_past_days:30 %} -Posted by {{ blog.2.author.formal_name }} on {{ blog.2.pub_date|date:"F j, Y" }}
-{{ blog.2.summary|safe }} -Read More from {{ blog.2.author.casual_name }} on this…
-{% endif %} - -{% if blog.3 and blog.3.pub_date|date_within_past_days:30 %} -Posted by {{ blog.3.author.formal_name }} on {{ blog.3.pub_date|date:"F j, Y" }}
-{{ blog.3.summary|safe }} -Read More from {{ blog.3.author.casual_name }} on this…
-{% endif %} - -{% if blog.4 and blog.4.pub_date|date_within_past_days:30 %} -Posted by {{ blog.4.author.formal_name }} on {{ blog.4.pub_date|date:"F j, Y" }}
-{{ blog.4.summary|safe }} -Read More from {{ blog.4.author.casual_name }} on this…
-{% endif %} +{% for entry in blog|slice:":5" %} + {% if forloop.first or entry.pub_date|date_within_past_days:30 %} + {% if not forloop.first %}