Show latest 3 posts

This commit is contained in:
2025-07-25 10:18:18 +10:00
parent ef4edd427d
commit 1c32c5901d
+2 -2
View File
@@ -87,8 +87,8 @@ class LinkListView(ListView):
for link in popular_links
]
# Add latest 2 posts to the context (most recent first)
context['latest_posts'] = Post.objects.all().order_by('-created_at')[:2]
# Add latest 3 posts to the context (most recent first)
context['latest_posts'] = Post.objects.all().order_by('-created_at')[:3]
# Add pinned mini apps with random colors
mini_apps = [