diff --git a/scipost/views.py b/scipost/views.py index 91377587af73700beabe27c9b5545bba1d4bb9f1..ebd2e8355213cfc0066bc8004e4854b841b468a0 100644 --- a/scipost/views.py +++ b/scipost/views.py @@ -176,7 +176,7 @@ def search(request): def index(request): '''Main page.''' context = { - 'latest_newsitem': NewsItem.objects.all().order_by('-date').first(), + 'latest_newsitem': NewsItem.objects.filter(on_homepage=True).order_by('-date').first(), 'submissions': Submission.objects.public().order_by('-submission_date')[:3], 'journals': Journal.objects.order_by('name'), 'publications': Publication.objects.published().order_by('-publication_date',