mirror of
https://github.com/rancher/rancher-docs.git
synced 2026-09-25 20:48:11 +00:00
Tell Google not to index the non-versioned docs
This commit is contained in:
+9
-1
@@ -1,4 +1,12 @@
|
||||
User-agent: *
|
||||
Disallow: {{ if ne (getenv "HUGO_ENV") "production" }}/{{ end }}
|
||||
|
||||
{{ if ne (getenv "HUGO_ENV") "production" }}
|
||||
Disallow: /
|
||||
{{ end }}
|
||||
|
||||
{{ range .Pages }}
|
||||
{{ if in .Dir "rancher/v2.x" }}
|
||||
Disallow: {{ .RelPermalink }}
|
||||
{{end}}
|
||||
{{ end }}
|
||||
Sitemap: https://rancher.com/sitemap.xml
|
||||
|
||||
Reference in New Issue
Block a user