Skip to content

Commit 8ea55ed

Browse files
authored
Merge pull request #206 from MITLibraries/timx-476-noindex-nofollow
Adds crawler directives to result and record pages
2 parents 2b597ac + 9da3cbc commit 8ea55ed

File tree

2 files changed

+8
-0
lines changed

2 files changed

+8
-0
lines changed

app/views/record/view.html.erb

+4
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,9 @@
11
<%= content_for(:title, record_page_title(@record)) %>
22

3+
<% content_for :additional_meta_tag do %>
4+
<meta name="robots" content="noindex, nofollow" />
5+
<% end %>
6+
37
<%= render(partial: 'shared/error', collection: @errors) %>
48

59
<%= render(partial: 'shared/site_title') %>

app/views/search/results.html.erb

+4
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,9 @@
11
<%= content_for(:title, results_page_title(@enhanced_query)) %>
22

3+
<% content_for :additional_meta_tag do %>
4+
<meta name="robots" content="noindex, nofollow" />
5+
<% end %>
6+
37
<div class="space-wrap">
48

59
<%= render partial: "shared/site_title" %>

0 commit comments

Comments
 (0)