From a24c9d6b9b5c6c9c244e91036093521a911629b5 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Jan=20Bedna=C5=99=C3=ADk?= <jan.bednarik@gmail.com>
Date: Wed, 26 Jan 2022 19:33:58 +0100
Subject: [PATCH] district: Limit articles num on homepage

---
 district/models.py | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/district/models.py b/district/models.py
index c8745d9a..adc4abe4 100644
--- a/district/models.py
+++ b/district/models.py
@@ -193,7 +193,7 @@ class DistrictHomePage(MetadataPageMixin, CalendarMixin, Page):
 
     @property
     def articles(self):
-        return self.get_descendants().type(DistrictArticlePage).live().specific()
+        return self.get_descendants().type(DistrictArticlePage).live().specific()[:6]
 
     @property
     def articles_page(self):
-- 
GitLab