Pulls in no posts fix by Peter
This commit is contained in:
@@ -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)})
|
||||
|
||||
Reference in New Issue
Block a user