<% content_for :content do %>
  <%= render 'shared/header' %>
  <div class="l-constrained">
    <div class="l-error-page">
      <main>
        <div class="error-page-message ">
          <%= yield %>
          <%= link_to t('.home'), root_path, class: 'button button--primary' %>
        </div>
      </main>
    </div>
  </div>
  <%= render 'shared/footer_social_links' %>
<% end %>

<%= render template: 'layouts/base' %>

<% content_for :content do %>

  <%= render 'shared/header' %>

  <div class="l-constrained">
    <div class="l-error-page">
      <main>
        <div class="error-page-message ">
          <%= yield %>
          <%= link_to t('.home'), root_path, class: 'button button--primary' %>
        </div>
      </main>
    </div>
  </div>

  <footer class="l-footer">
    <%= render 'shared/footer_social_links' %>
  </footer>
<% end %>

<%= render template: 'layouts/base' %>

Fix footer layout on error page
Fix footer layout on error page
