Add noindex meta tag to diary index pages
Google (and other search engines) should follow all links on this page, but only index the actual diary_entry#show and not the #index. This meta tag tells google to do just that (https://developers.google.com/search/docs/advanced/crawling/block-indexing?hl=en). Part of https://github.com/openstreetmap/openstreetmap-website/issues/2851
This commit is contained in:
parent
430872ad7b
commit
f36b6375e9
1 changed files with 1 additions and 0 deletions
|
@ -1,3 +1,4 @@
|
|||
<% content_for :head, tag(:meta, :name => :robots, :content => :noindex) %>
|
||||
<% content_for :heading do %>
|
||||
<div <% if @user %> id="userinformation"<% end %>>
|
||||
<% if @user %>
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue