Files
syscom-master-admin-ui/preview/assets/icon-fonts/bootstrap-icons/icons/docs/layouts/robots.txt
T
2026-07-13 11:57:09 +05:30

13 lines
360 B
Plaintext

# www.robotstxt.org
{{- $isProduction := eq hugo.Environment "production" -}}
{{- $isNetlify := eq (getenv "NETLIFY") "true" -}}
{{- $allowCrawling := and (not $isNetlify) $isProduction -}}
{{ if $allowCrawling }}
# Allow crawling of all content
{{- end }}
User-agent: *
Disallow:{{ if not $allowCrawling }} /{{ end }}
Sitemap: {{ "/sitemap.xml" | absURL }}