created base for rendering all posts on home page, far from complete