Update hugo.toml: Add enableRobotsTXT and environment parameter
All checks were successful
Build and Deploy Hugo Site / build_and_deploy (push) Successful in 1m37s
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:
parent
a0a49eb357
commit
60437660e8
2 changed files with 10 additions and 3 deletions
4
themes/hugoplate/layouts/robots.txt
Normal file
4
themes/hugoplate/layouts/robots.txt
Normal file
|
|
@ -0,0 +1,4 @@
|
|||
User-agent: *
|
||||
{{ if eq .Site.Params.environment "development" }}
|
||||
Disallow: /
|
||||
{{ end }}
|
||||
Loading…
Add table
Add a link
Reference in a new issue