Skip to content

Commit

Permalink
Remove canonical and other meta tags
Browse files Browse the repository at this point in the history
These are now done by the Machine readable metadata component
(alphagov/govuk_publishing_components#335).
  • Loading branch information
tijmenb committed May 29, 2018
1 parent 8b7cd8b commit 59802fd
Showing 1 changed file with 0 additions and 19 deletions.
19 changes: 0 additions & 19 deletions app/views/layouts/application.html.erb
Original file line number Diff line number Diff line change
Expand Up @@ -25,25 +25,6 @@
<meta name="description" content="<%= strip_tags(@content_item.description) %>" />
<% end %>

<link rel="canonical" href="<%= @content_item.canonical_url %>" />

<meta property="og:site_name" content="GOV.UK" />
<meta property="og:type" content="article" />
<meta property="og:url" content="<%= @content_item.canonical_url %>" />
<meta property="og:title" content="<%= @content_item.page_title %>" />
<meta property="og:description" content="<%= strip_tags(@content_item.description) %>" />

<% if @content_item.respond_to?(:image) && @content_item.image %>
<meta property="og:image" content="<%= @content_item.image["url"] %>" />
<meta property="og:image:alt" content="<%= @content_item.image["alt_text"] %>" />

<meta name="twitter:card" content="summary_large_image" />
<meta name="twitter:image" content="<%= @content_item.image["url"] %>" />
<meta name="twitter:image:alt" content="<%= @content_item.image["alt_text"] %>" />
<% else %>
<meta name="twitter:card" content="summary" />
<% end %>

<%= yield :extra_head_content %>
</head>
<body>
Expand Down

0 comments on commit 59802fd

Please sign in to comment.