#NEWLINE# @ register . inclusion_tag ( 'blog/includes/blog_post_listing.html' , takes_context = True ) #NEWLINE# def news_feed( context , count = 2 ) : #NEWLINE# #INDENT# blogs = BlogPage . objects . filter ( live = True ) . order_by ( '-date' ) #NEWLINE# return { #NEWLINE# #INDENT# 'blogs' : blogs [ : blogs ] , #NEWLINE# 'request' : context [ 'request' ] , #NEWLINE# #UNINDENT# }