From 7f97cfdd1e051e422d305078bad53e07185219c2 Mon Sep 17 00:00:00 2001 From: Simon C Date: Tue, 19 Jul 2022 14:39:00 +0200 Subject: [PATCH] Suppression de l'indexation du site de staging --- config/_default/config.yml | 2 ++ layouts/robots.txt | 2 ++ 2 files changed, 4 insertions(+) create mode 100644 layouts/robots.txt 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 }}