Tell Google not to index the non-versioned docs

This commit is contained in:
Catherine Luse
2021-06-10 17:00:30 -07:00
parent 8ba180ea31
commit ffa29e2862
+9 -1
View File
@@ -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