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:
Tobias 2021-01-02 20:22:26 +01:00 committed by GitHub
parent 430872ad7b
commit f36b6375e9
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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 %>