Skip to content

Commit

Permalink
Fix the credit variables (thanks, Timo!)
Browse files Browse the repository at this point in the history
  • Loading branch information
waferbaby committed Mar 26, 2024
1 parent 568a070 commit 15c7df6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion layouts/post.erb
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ layout: default
<figure>
<img src="/images/interviews/<%= @page.slug %>/portrait.jpg" width="500" height="335" class="portrait u-photo" alt="A picture of <%= @page.title %>" itemprop="image">
<% if @page.credits %>
<figcaption>Image by <% if @page.credits[:url] %><a href="<%= @page.credits[:url] %>" title="More details about <%= @page.credits[:name] %>."><%= @page.credits[:name] %></a><% else %><%= @page.credits[:name] %><% end %><% if @page.credits[:details] %> (<%= @page.credits[:details] %>)<% end %><% if @page.credits[:licence] %> (<a href="http://creativecommons.org/licenses/<%= @page.credits[:licence] %>/4.0/" title="The <%= @page.credits[:licence].upcase %> Creative Commons licence."><%= @page.credits[:licence].upcase %></a>)<% end %>.</figcaption>
<figcaption>Image by <% if @page.credits.url %><a href="<%= @page.credits.url %>" title="More details about <%= @page.credits.name %>."><%= @page.credits.name %></a><% else %><%= @page.credits.name %><% end %><% if @page.credits.details %> (<%= @page.credits.details %>)<% end %><% if @page.credits.licence %> (<a href="http://creativecommons.org/licenses/<%= @page.credits.licence %>/4.0/" title="The <%= @page.credits.licence.upcase %> Creative Commons licence."><%= @page.credits.licence.upcase %></a>)<% end %>.</figcaption>
<% end %>
</figure>
</figure>
Expand Down

0 comments on commit 15c7df6

Please sign in to comment.