use layout to render posts from collection