diff --git a/config/_default/config.yml b/config/_default/config.yml index caea4f9..efea6c9 100644 --- a/config/_default/config.yml +++ b/config/_default/config.yml @@ -154,3 +154,5 @@ deployment: s3://staging.jarnat.fr?endpoint=http://10.20.20.25:3900&disableSSL=true&s3ForcePathStyle=true®ion=garage disableHugoGeneratorInject: true + +enableRobotsTXT: true diff --git a/layouts/robots.txt b/layouts/robots.txt new file mode 100644 index 0000000..56f736f --- /dev/null +++ b/layouts/robots.txt @@ -0,0 +1,2 @@ +User-agent: * +Disallow: {{ if ne hugo.Environment "production" }}/{{ end }}