Suppression de l'indexation du site de staging

This commit is contained in:
Simon 2022-07-19 14:39:00 +02:00
parent 5337c71d49
commit 7f97cfdd1e
2 changed files with 4 additions and 0 deletions

View File

@ -154,3 +154,5 @@ deployment:
s3://staging.jarnat.fr?endpoint=http://10.20.20.25:3900&disableSSL=true&s3ForcePathStyle=true&region=garage
disableHugoGeneratorInject: true
enableRobotsTXT: true

2
layouts/robots.txt Normal file
View File

@ -0,0 +1,2 @@
User-agent: *
Disallow: {{ if ne hugo.Environment "production" }}/{{ end }}