<main id="content" role="main" class="govuk-grid-column-two-thirds <%= main_class if local_assigns.include?(:main_class) %>" <%= @lang_attribute %>>

  <header class="page-header">
    <%= render "govuk_publishing_components/components/title", context: local_assigns[:context], title: title %>
  </header>
  <div class="article-container group">
    <% if publication.in_beta %>
      <%= render 'govuk_publishing_components/components/phase_banner', phase: "beta" %>
    <% end %>

    <div class="content-block">
      <div class="inner">
        <%= yield %>
      </div>
    </div>
    <%= render 'shared/publication_metadata', :publication => publication %>
  </div>
</main>

<div class="govuk-grid-column-one-third govuk-!-margin-top-7">
  <%= render 'govuk_publishing_components/components/contextual_sidebar', content_item: @content_item %>
</div>

<% content_for :after_content do %>
  <div class="govuk-grid-column-two-thirds">
    <%= render 'govuk_publishing_components/components/contextual_footer', content_item: @content_item %>
  </div>
<% end %>

<main id="content" role="main" class="<%= main_class if local_assigns.include?(:main_class) %>" <%= @lang_attribute %>>

  <header class="page-header govuk-grid-column-two-thirds">
    <%= render "govuk_publishing_components/components/title", context: local_assigns[:context], title: title %>
  </header>
  <div class="article-container group govuk-grid-column-two-thirds">
    <% if publication.in_beta %>
      <%= render 'govuk_publishing_components/components/phase_banner', phase: "beta" %>
    <% end %>

    <div class="content-block">
      <div class="inner">
        <%= yield %>
      </div>
    </div>
    <%= render 'shared/publication_metadata', :publication => publication %>
  </div>
</main>

<div class="govuk-grid-column-one-third">
  <%= render 'govuk_publishing_components/components/contextual_sidebar', content_item: @content_item %>
</div>

<% content_for :after_content do %>
  <div class="govuk-grid-column-two-thirds">
    <%= render 'govuk_publishing_components/components/contextual_footer', content_item: @content_item %>
  </div>
<% end %>

Make sidebar position consistent with other applications
Make sidebar position consistent with other applications
