Skip to content

Commit 7c06d04

Browse files
committed
added deindexing for some EOL versions
1 parent b177151 commit 7c06d04

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

_templates/_page_openshift.html.erb

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@
1010
<meta content="IE=edge" http-equiv="X-UA-Compatible">
1111
<meta content="width=device-width, initial-scale=1.0" name="viewport">
1212
<%= (distro_key == "openshift-webscale") ? '<meta name="robots" content="noindex,nofollow">' : '' %>
13+
<%= ((["3.0", "3.1", "3.2", "3.3", "3.9", "4.1"].include?(version)) && distro_key == "openshift-enterprise") ? '<meta name="robots" content="noindex">' : '' %>
1314
<title><%= [topic_title, subgroup_title].compact.join(' - ') %> | <%= group_title %> | <%= distro %> <%= version %></title>
1415
<link href="https://assets.openshift.net/content/subdomain.css" rel="stylesheet" type="text/css">
1516
<link href="https://docs.openshift.com/container-platform/4.1/_stylesheets/search.css" rel="stylesheet" />
@@ -442,7 +443,7 @@
442443
toc = document.querySelector('#toc')
443444
main = document.querySelector('.main')
444445
okd_footer = document.querySelector('.footer-origin-docs')
445-
446+
446447
//handle short pages
447448
if (window.innerHeight === document.documentElement.scrollHeight) {
448449
//sidebar

0 commit comments

Comments
 (0)