feat: Add robots.txt

This commit is contained in:
slashformotion 2022-02-18 10:49:20 +01:00
parent c6bad82e27
commit 7ad7ce22fc

7
layouts/robots.txt Normal file
View file

@ -0,0 +1,7 @@
User-agent: *
{{- if hugo.IsProduction | or (eq .Site.Params.env "production") }}
Allow: /
{{- else }}
Disallow: /
{{- end }}
Sitemap: {{ "sitemap.xml" | absURL }}