<% if @config[:breadcrumbs] %>
<% ancestor_array = ancestor_path_array(@item) unless ancestor_path_array(@item).empty? %>
<% if ancestor_array %>
<% ancestor_array.reverse_each do |item| %>
- <%= link_to item.key?(:title) ? "#{item[:title]}" : "Breadcrumb", item %>
<% end %>
- <%= @item.key?(:title) ? "#{@item[:title]}" : "Current page" %>
<% end %>
<% end %>
<% if @item[:title] %>
<%= @item[:title] %><%= @item[:title_badge] %>
<% end %>
<% if @item[:author] %>
Article written by
<%= @item[:author] %>
on <%= @item[:date] %>
•
<% if @item[:last_updated] %>
Last updated: <%= @item[:last_updated] %>
•
<% end %>
Type: <%= @item[:article_type] %>
•
Level: <%= @item[:level] %>
<% end %>
<%= yield %>
<% if ENV['NANOC_ENV'] == 'production' && ENV['CI_COMMIT_REF_NAME'] == 'master' %>
<%# Show Edit button only in production and on master branch (hide archives) %>
<%= edit_on_gitlab(@item) %>
<% end %>
<% if @item[:last_updated] %>
Last updated <%= @item[:last_updated] %>
<% end %>
<%= render '/disqus.*' %>