diff --git a/fet2020/fet2020/views.py b/fet2020/fet2020/views.py index 0086d02e..46de0f2a 100644 --- a/fet2020/fet2020/views.py +++ b/fet2020/fet2020/views.py @@ -16,5 +16,7 @@ def index(request): t=set( t for t in get_tags(posts)) if l>=1: featured_post=posts.popleft() - + else: + featured_post=0 + return render(request, 'home.html',{'posts':posts, 'featured_post':featured_post, "tags_list": ", ".join(t)})