-
- <% if @post.credits %>
- Image by <% if @post.credits[:url] %><%= @post.credits[:name] %><% else %><%= @post.credits[:name] %><% end %><% if @post.credits[:details] %> (<%= @post.credits[:details] %>)<% end %><% if @post.credits[:licence] %> (<%= @post.credits[:licence].upcase %>)<% end %>.
+
+ <% if @page.credits %>
+ Image by <% if @page.credits[:url] %><%= @page.credits[:name] %><% else %><%= @page.credits[:name] %><% end %><% if @page.credits[:details] %> (<%= @page.credits[:details] %>)<% end %><% if @page.credits[:licence] %> (<%= @page.credits[:licence].upcase %>)<% end %>.
<% end %>
- <%= @post.title %>
- <%= @post.summary %>
+ <%= @page.title %>
+ <%= @page.summary %>
- in
- <% @post.categories.each do |slug| %>
- <%= slug %><%= ', ' unless @post.categories.last == slug %>
+ in
+ <% @page.categories.each do |slug| %>
+ <%= slug %><%= ', ' unless @page.categories.last == slug %>
<% end %>
<%= yield %>
- <% if @post.licence %>
Note: This interview is available under the <%= @post.licence.upcase %> Creative Commons licence.
<% end %>
+ <% if @page.licence %>
Note: This interview is available under the <%= @page.licence.upcase %> Creative Commons licence.
<% end %>
diff --git a/layouts/posts.erb b/layouts/posts.erb
index 84ca66cbb..536bf6a67 100644
--- a/layouts/posts.erb
+++ b/layouts/posts.erb
@@ -3,15 +3,15 @@ layout: default
title: Interviews
---
-<% if @pagination[:current_page] == 1 && !@category %>
+<% if @pagination.current_page == 1 && !@category %>
Uses This is a collection of nerdy interviews asking people from all walks of life what they use to get the job done.
<% else %>
- There are <%= @pagination[:post_count] %> interviews<% if @category %> in this category<% end %>. Happy reading!
+ There's <%= @pagination.post_count %> interview<% if @pagination.post_count != 1 %>s<% end %><% if @category %> in this category<% end %>. Happy reading!
<% end %>
-<% @pagination[:posts].each do |post| %>
+<% @pagination.posts.each do |post| %>
There are currently <%= @site.categories.count %> categories on the site.
+There are currently <%= @site.categories.keys.count %> categories on the site.
<% ('a'..'z').each do |letter| %>
<% unless (slugs = @site.categories.keys.select { |key| key[0] == letter }.sort).empty? %>
@@ -13,7 +13,7 @@ title: Categories
<% slugs.each do |slug| %>