Skip to content

Commit 7d7ab8c

Browse files
authored
Merge pull request #97919 from gabriel-rh/okd-old-versions-in-search
remove old content from search results for OKD, same as was already done for OpenShift
2 parents eb32713 + 0fe8aea commit 7d7ab8c

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

_templates/_page_openshift.html.erb

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,8 @@
1212
<%= (distro_key == "openshift-webscale") ? '<meta name="robots" content="noindex,nofollow">' : '' %>
1313
<%= (distro_key == "openshift-dpu") ? '<meta name="robots" content="noindex,nofollow">' : '' %>
1414
<%= ((["3.0", "3.1", "3.2", "3.3", "3.4", "3.5", "3.6", "3.7", "3.9", "3.10", "4.1", "4.2", "4.3", "4.4", "4.5", "4.6", "4.7"].include?(version)) && distro_key == "openshift-enterprise") ? '<meta name="googlebot" content="noindex">' : '' %>
15+
<%= ((["3.6", "3.7", "3.9", "3.10", "3.11", "4.6", "4.7", "4.8", "4.9", "4.10", "4.11", "4.12"].include?(version)) && distro_key == "openshift-origin") ? '<meta name="googlebot" content="noindex">' : '' %>
16+
1517
<title><%= [topic_title, subgroup_title].compact.join(' - ') %> | <%= group_title %> | <%= distro %> <%= version %></title>
1618
<link href="https://assets.openshift.net/content/subdomain.css" rel="stylesheet" type="text/css"/>
1719
<link href="https://docs.okd.io/latest/_stylesheets/search.css" rel="stylesheet" media="screen"/>

0 commit comments

Comments
 (0)