Update hugo.toml: Add enableRobotsTXT and environment parameter
All checks were successful
Build and Deploy Hugo Site / build_and_deploy (push) Successful in 1m37s

Logic for robots.txt while being in development environment to disallow all
This commit is contained in:
Andreas Hnida 2024-04-18 10:12:21 +02:00
commit 60437660e8
2 changed files with 10 additions and 3 deletions

View file

@ -0,0 +1,4 @@
User-agent: *
{{ if eq .Site.Params.environment "development" }}
Disallow: /
{{ end }}