diff --git a/layouts/robots.txt b/layouts/robots.txt new file mode 100644 index 0000000..af6d90e --- /dev/null +++ b/layouts/robots.txt @@ -0,0 +1,7 @@ +User-agent: * +{{- if hugo.IsProduction | or (eq .Site.Params.env "production") }} +Allow: / +{{- else }} +Disallow: / +{{- end }} +Sitemap: {{ "sitemap.xml" | absURL }} \ No newline at end of file