From c058297fdde44b3e1ee4a0afdfb171058c5574e6 Mon Sep 17 00:00:00 2001 From: Daniel Bogan Date: Sun, 4 Feb 2024 10:11:42 +0000 Subject: [PATCH] Switch to the new metadata format --- layouts/default.erb | 22 +++++++++++----------- layouts/post.erb | 18 +++++++++--------- layouts/posts.erb | 16 ++++++++-------- pages/categories/index.erb | 4 ++-- 4 files changed, 30 insertions(+), 30 deletions(-) diff --git a/layouts/default.erb b/layouts/default.erb index 2a5b0de0a..3c653afab 100644 --- a/layouts/default.erb +++ b/layouts/default.erb @@ -1,28 +1,28 @@ - Uses This<% if @page %> / <%= @page.title %><% elsif @post %> / <%= @post.title %><% end %><% if @pagination && @pagination[:current_page] > 1 %> (Page <%= @pagination[:current_page] %>)<% end %> + Uses This<% if @page %> / <%= @page.title %><% end %><% if @pagination && @pagination.current_page > 1 %> (Page <%= @pagination.current_page %>)<% end %> <% if @pagination %> - <% if @pagination[:urls][:previous_page] %><% end %> - <% if @pagination[:urls][:next_page] %><% end %> + <% if @pagination.urls[:previous_page] %><% end %> + <% if @pagination.urls[:next_page] %><% end %> <% end %> - - <% if @post %> - - + + <% if @page.slug %> + + - - <% @post.categories.each do |category| %> + + <% @page.categories.each do |category| %> <% end %> - + @@ -31,7 +31,7 @@

Uses This

-

<%= @site.posts.count %> interviews since 2009

+

X interviews since 2009