blob: c07f0dfda00eaab48523374f351e2887489c9324 (
plain)
1
2
3
4
5
6
7
8
9
10
|
{{- $url := urls.Parse ("/" | absURL) -}}
# robots.txt file for "{{ site.Title }}" website, {{ $url.Host }}
User-agent: *
{{- if eq (getenv "HUGO_ENV") "production" | or (eq site.Params.env "production") }}
Allow: /
Sitemap: {{ "/stemap.xml" | absURL }}
{{- else }}
Disallow: /
{{- end }}
|