diff --git a/layouts/robots.txt b/layouts/robots.txt new file mode 100644 index 0000000..1ae7abf --- /dev/null +++ b/layouts/robots.txt @@ -0,0 +1,2 @@ +User-agent: * +Disallow: {{ if ne .Hugo.Environment "production" }}/{{ end }} diff --git a/robots.txt b/robots.txt deleted file mode 100644 index 1f53798..0000000 --- a/robots.txt +++ /dev/null @@ -1,2 +0,0 @@ -User-agent: * -Disallow: /