Set noindex header for builds except for master (+1 squashed commit) (#9150)
Squashed commits: [c87129c] Set noindex header for builds except for master
This commit is contained in:
committed by
k8s-ci-robot
parent
38e51977f2
commit
eda181dec4
+6
-1
@@ -1,6 +1,7 @@
|
|||||||
[build]
|
[build]
|
||||||
|
# This default build command adds the robots noindex directive to the site headers
|
||||||
publish = "public"
|
publish = "public"
|
||||||
command = "hugo"
|
command = "hugo && cp netlify_noindex_headers.txt public/_headers"
|
||||||
|
|
||||||
[context.production.environment]
|
[context.production.environment]
|
||||||
HUGO_BASEURL = "https://kubernetes.io/"
|
HUGO_BASEURL = "https://kubernetes.io/"
|
||||||
@@ -20,3 +21,7 @@ command = "hugo -b $DEPLOY_PRIME_URL"
|
|||||||
[context.branch-deploy.environment]
|
[context.branch-deploy.environment]
|
||||||
HUGO_VERSION = "0.40.3"
|
HUGO_VERSION = "0.40.3"
|
||||||
|
|
||||||
|
[context.master]
|
||||||
|
# This context is triggered by the master branch and allows search indexing
|
||||||
|
publish = "public"
|
||||||
|
command = "hugo"
|
||||||
|
|||||||
Reference in New Issue
Block a user