<% @page.content.header_images.by_position.each do |header_image| %>
<% if header_image.title.present? %>

<% if header_image.link_url.present? %><% end %> <%= header_image.title %> <% if header_image.link_url.present? %><% end %>

<% end %> <% if header_image.caption.present? %>

<%= header_image.caption %>

<% end %> <% if header_image.link_url.present? %> Find out more <% end %>
<% end %>