From 1704584f34360f040896820c5954c3deb00289a3 Mon Sep 17 00:00:00 2001 From: "Bradley M. Kuhn" Date: Fri, 18 Dec 2015 11:59:03 -0800 Subject: [PATCH] Allow up to 5 blog posts on the front page. We have a lot of blog posts at the moment. --- www/conservancy/frontpage.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/www/conservancy/frontpage.py b/www/conservancy/frontpage.py index 9506e8b6..7b4096b5 100644 --- a/www/conservancy/frontpage.py +++ b/www/conservancy/frontpage.py @@ -14,7 +14,7 @@ def view(request): supporters_count = len(Supporter.objects.all().filter(display_until_date__gte=datetime.now())) press_releases = PressRelease.objects.all().filter(pub_date__lte=datetime.now(), sites=2)[:5] - blog = BlogEntry.objects.all().filter(pub_date__lte=datetime.now())[:3] + blog = BlogEntry.objects.all().filter(pub_date__lte=datetime.now())[:5] c = { 'press_releases': press_releases,