<% content_for :title, @calendar.title %>
<% content_for :head do %>
  <meta name="description" content="<%= @calendar.description %>">

  <link rel="alternate" type="application/json" href="<%= calendar_path(@calendar, :format => :json) %>" />
  <% @calendar.divisions.each do |division| %>
    <link rel="alternate" type="application/json" href="<%= division_path(@calendar, division, :format => :json) %>" />
    <link rel="alternate" type="text/calendar" href="<%= division_path(@calendar, division, :format => :ics) %>" />
  <% end %>
<% end %>

<% content_for :title, @calendar.title %>
<% content_for :head do %>
  <meta name="description" content="<%= @calendar.description %>">

  <link rel="alternate" type="application/json" href="<%= calendar_path(@calendar, :format => :json) %>" />
  <% @calendar.divisions.each do |division| %>
    <link rel="alternate" type="application/json" href="<%= division_path(@calendar, division, :format => :json) %>" />
    <link rel="alternate" type="text/calendar" href="<%= division_path(@calendar, division, :format => :ics) %>" />
  <% end %>

  <%= render 'govuk_publishing_components/components/machine_readable_metadata',
    schema: :article,
    content_item: @content_item %>
<% end %>

Add schema.org data via the new component
Add schema.org data via the new component

This uses the new component built in
https://github.com/alphagov/govuk_publishing_components/pull/318.

https://trello.com/c/RLQI1IUV
