% if @item.identifier.to_s.split('/').count == 2 %>
<%= @item[:title] %>
<% else %>
<%= @item.key?(:title) ? "#{item[:title]} | GitLab" : "GitLab Documentation" %>
<% end %>
<% if @item[:description] %>
<% else %>
<% end %>
<% if @item[:noindex] or !production_and_default_branch? %>
<% end %>
<% if !ENV['CI_COMMIT_REF_NAME'].nil? and stable_version?(ENV['CI_COMMIT_REF_NAME']) %>
<% else %>
<% end %>
<% unless ENV['DISABLE_CSP'] %>
<%= render '/csp.*' %>
<% end %>
<% if production? %>
<%# Adds GTM only in production %>
<% end %>