From e6e02e5e45e989f56329b920aa277a5c387a6f90 Mon Sep 17 00:00:00 2001 From: Go MAEDA Date: Thu, 6 Dec 2018 00:40:39 +0000 Subject: Discourage search engines from indexing old versions of wiki pages (#29503). Patch by Go MAEDA. git-svn-id: http://svn.redmine.org/redmine/trunk@17690 e93f8b46-1217-0410-a6f0-8f06a7374b81 --- app/views/wiki/show.html.erb | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'app/views') diff --git a/app/views/wiki/show.html.erb b/app/views/wiki/show.html.erb index 5fffba259..93a358346 100644 --- a/app/views/wiki/show.html.erb +++ b/app/views/wiki/show.html.erb @@ -99,4 +99,8 @@ <%= render :partial => 'sidebar' %> <% end %> +<% content_for :header_tags do %> + <%= robot_exclusion_tag unless @content.current_version? %> +<% end %> + <% html_title @page.pretty_title %> -- cgit v1.2.3