Files
website/netlify.toml
Andrew Chen eda181dec4 Set noindex header for builds except for master (+1 squashed commit) (#9150)
Squashed commits:
[c87129c] Set noindex header for builds except for master
2018-06-19 15:22:32 -07:00

28 lines
708 B
TOML

[build]
# This default build command adds the robots noindex directive to the site headers
publish = "public"
command = "hugo && cp netlify_noindex_headers.txt public/_headers"
[context.production.environment]
HUGO_BASEURL = "https://kubernetes.io/"
HUGO_VERSION = "0.40.3"
HUGO_ENV = "production"
HUGO_ENABLEGITINFO = "true"
[context.deploy-preview]
command = "hugo -b $DEPLOY_PRIME_URL"
[context.deploy-preview.environment]
HUGO_VERSION = "0.40.3"
[context.branch-deploy]
command = "hugo -b $DEPLOY_PRIME_URL"
[context.branch-deploy.environment]
HUGO_VERSION = "0.40.3"
[context.master]
# This context is triggered by the master branch and allows search indexing
publish = "public"
command = "hugo"