From 15c7df65f9db46538dbbbff0d8c4268be75bffda Mon Sep 17 00:00:00 2001 From: Daniel Bogan Date: Tue, 26 Mar 2024 07:25:27 +0000 Subject: [PATCH] Fix the credit variables (thanks, Timo!) --- layouts/post.erb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/layouts/post.erb b/layouts/post.erb index e889637c7..4c7137704 100644 --- a/layouts/post.erb +++ b/layouts/post.erb @@ -7,7 +7,7 @@ layout: default
A picture of <%= @page.title %> <% 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 %>.
+
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 %>