try using paginator.posts instead of site.posts