def get_context_data(self, **kwargs):
context = super().get_context_data(**kwargs)
- context['posts'] = Note.objects.filter(published=True).order_by('-creation_timestamp')[:5]
- context['recent_changes'] = Note.objects.filter(published=True).order_by('-last_update_timestamp')
+ context['posts'] = Note.objects.filter(published=True, included_in_feed=True).order_by(
+ '-creation_timestamp'
+ )[:5]
+ context['recent_changes'] = Note.objects.filter(published=True, included_in_feed=True).order_by(
+ '-last_update_timestamp'
+ )
context['index'] = Note.objects.filter(slug='index').first()
return context