{{- /* For Netlify deployments, we disallow all routes to prevent search engines from indexing our preview sites. */ -}} {{- if hugo.IsProduction -}} User-agent: * Sitemap: {{ "sitemap.xml" | absURL }} {{- else -}} # Disable all indexing on staging websites and Netlify previews to prevent # them showing up in search results. User-agent: * Disallow: / {{- end }}