Add more comments to homepage
This commit is contained in:
parent
4a1d800802
commit
802ba7bbba
2 changed files with 38 additions and 36 deletions
|
@ -38,7 +38,7 @@ class PostList(ListView):
|
|||
context['title'] = self.title or _('Page %d of Posts') % context['page_obj'].number
|
||||
context['first_page_href'] = reverse('home')
|
||||
context['page_prefix'] = reverse('blog_post_list')
|
||||
context['comments'] = Comment.most_recent(self.request.user, 10)
|
||||
context['comments'] = Comment.most_recent(self.request.user, 25)
|
||||
context['new_problems'] = Problem.objects.filter(is_public=True, is_organization_private=False) \
|
||||
.order_by('-date', '-id')[:settings.DMOJ_BLOG_NEW_PROBLEM_COUNT]
|
||||
context['page_titles'] = CacheDict(lambda page: Comment.get_page_title(page))
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue