<% if paginated? %> <% first = @pages.current_page.first_item %> <% last = @pages.current_page.last_item %> <% if first == last %> Post <%= last %> of <% else %> Posts <%= first %>–<%= last %> of <% end %> <% end %> <%= pluralize(@blog.posts.count, "blog post") %>

<%= render :partial => "posts/post", :collection => @posts %> <%= "Pages: #{pagination_links(@pages)}" if paginated? %>