<!DOCTYPE HTML>
<html lang="en">
<%= render 'parts/head', :page_title => @item[:title] %>
<body>
  <%= render 'parts/header', :page_branch => @item[:branch] %>
  <main>
    <%= yield %>
  </main>
</body>
<%= render 'parts/foot' %>
</html>

<!DOCTYPE HTML>
<html lang="en">
<%= render 'parts/head', :page_title => @item[:title] %>
<body>
  <%= render 'parts/header', :page_branch => @item[:branch] %>
  <main>
    <% if @item.attributes.has_key?(:banner) %>
      <figure class="banner">
        <img src="<%= @site.config[:base_url] + @items[@item[:banner]].path %>" alt="<%= @item[:title] %>" />
      </figure>
    <% end %>
    <%= yield %>
  </main>
</body>
<%= render 'parts/foot' %>
</html>

Add banner as post attribute
Add banner as post attribute
