sidebar and navbar templates are back in the three different templates, and not in index.html
lastTimePosted is adjusted when a post is deleted
if all of a user's posts are deleted, lastTimePosted is set to null