Skip to content

Commit

Permalink
add meta tag to warn bots not to index revision pages (#11008)
Browse files Browse the repository at this point in the history
  • Loading branch information
RuthAtem authored Apr 12, 2022
1 parent 09e2fe3 commit f199512
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions app/views/layouts/application.html.erb
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,10 @@
<%= javascript_include_tag "cable" %>
<% end %>
<% if @is_revision %>
<meta name="robots" content="noindex">
<% end %>
<% if @node && @node.body %>
<meta property="og:title" content="<%= @title %>" />
<meta property="og:site_name" content="Public Lab" />
Expand Down

0 comments on commit f199512

Please sign in to comment.