Add default robots.txt. Close ##21

This commit is contained in:
Dmitry Kolosov 2020-06-05 20:31:54 +03:00
parent f8131480d1
commit 3d2abb5cfa

7
layouts/robots.txt Normal file
View File

@ -0,0 +1,7 @@
User-agent: *
# robotstxt.org - if ENV production variable is false robots will be disallowed.
{{ if eq (getenv "HUGO_ENV") "production" | or (eq .Site.Params.env "production") }}
Disallow:
{{ else }}
Disallow: /
{{ end }}