<% breadcrumb = "<p><a href='/manual.html##{section_url}'>#{current_page.data.section}</a></p>" %>
<% html = "#{breadcrumb} <h1 id='header'>#{current_page.data.title}</h1>#{yield}" %>

<% content_for :page_description, Snippet.generate(html) %>

<% content_for :sidebar do %>
  <a href='/manual.html' class="toc__back-link govuk-link">&lsaquo; Manual</a>
  <%= single_page_table_of_contents html, max_level: 3 %>
<% end %>

<% wrap_layout :core do %>
  <% if current_page.data.section == "Icinga alerts" %>
    <div class="information-callout">
      This page describes what to do in case of an
      <a href='https://docs.publishing.service.gov.uk/manual/tools.html#icinga'>Icinga alert</a>.
      For more information you could
      <a href='https://github.com/alphagov/govuk-puppet/search?utf8=%E2%9C%93&q=<%= File.basename(current_page.path, ".*") %>'>
        search the govuk-puppet repo for the source of the alert
      </a>
    </div>
  <% end %>

  <%= html %>

  <%= partial 'partials/related_content' %>
<% end %>

<%
  breadcrumb = if current_page.data.section == "Icinga alerts"
                 ""
               else
                 "<p><a href='/manual.html##{section_url}'>#{current_page.data.section}</a></p>"
               end
%>
<% html = "#{breadcrumb} <h1 id='header'>#{current_page.data.title}</h1>#{yield}" %>

<% content_for :page_description, Snippet.generate(html) %>

<% content_for :sidebar do %>
  <a href='/manual.html' class="toc__back-link govuk-link">&lsaquo; Manual</a>
  <%= single_page_table_of_contents html, max_level: 3 %>
<% end %>

<% wrap_layout :core do %>
  <% if current_page.data.section == "Icinga alerts" %>
    <div class="information-callout">
      This page describes what to do in case of an
      <a href='https://docs.publishing.service.gov.uk/manual/tools.html#icinga'>Icinga alert</a>.
      For more information you could
      <a href='https://github.com/alphagov/govuk-puppet/search?utf8=%E2%9C%93&q=<%= File.basename(current_page.path, ".*") %>'>
        search the govuk-puppet repo for the source of the alert
      </a>
    </div>
  <% end %>

  <%= html %>

  <%= partial 'partials/related_content' %>
<% end %>

Stop generating 'Icinga alerts' breadcrumb for non-existing anchor
Stop generating 'Icinga alerts' breadcrumb for non-existing anchor

There is no 'Icinga alerts' section on manual.html, as alerts are
their own special thing. We already have logic in the manual_layout
template to do something different with Icinga Alerts, so it doesn't
seem controversial to add another conditional.

I did consider removing all 'section: Icinga alerts' lines from the
docs under /alerts, as they are ALL the same and we can infer it
from the path. But that feels like a future optimisation. In the
meantime I just want to stop linking to an anchor point that
doesn't exist.
