Passing posts from repository to template