User-agent: *

{{ 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
