Revert 9225, fix indexing for k8s.io (#9767)
This commit is contained in:
committed by
k8s-ci-robot
parent
f7917d0212
commit
4920a51665
@@ -1,8 +1,6 @@
|
|||||||
{{- $cssFilesFromConfig := .Site.Params.pushAssets.css -}}
|
{{- $cssFilesFromConfig := .Site.Params.pushAssets.css -}}
|
||||||
{{- $jsFilesFromConfig := .Site.Params.pushAssets.js -}}
|
{{- $jsFilesFromConfig := .Site.Params.pushAssets.js -}}
|
||||||
{{- $pages := .Site.RegularPages -}}
|
{{- $pages := .Site.RegularPages -}}
|
||||||
/*
|
|
||||||
X-Robots-Tag: noindex
|
|
||||||
Link: </images/favicon.png>; rel=preload; as=image
|
Link: </images/favicon.png>; rel=preload; as=image
|
||||||
{{- range $cssFilesFromConfig -}}
|
{{- range $cssFilesFromConfig -}}
|
||||||
{{- $cssUrl := printf "/css/%s.css" . }}
|
{{- $cssUrl := printf "/css/%s.css" . }}
|
||||||
|
|||||||
+8
-1
@@ -1,6 +1,8 @@
|
|||||||
[build]
|
[build]
|
||||||
|
# This default build command adds the robots noindex directive to the site headers.
|
||||||
|
# It is turned off ONLY for the `master` branch deployment on kubernetes.io
|
||||||
publish = "public"
|
publish = "public"
|
||||||
command = "hugo"
|
command = "hugo --enableGitInfo && cp netlify_noindex_headers.txt public/_headers"
|
||||||
|
|
||||||
[build.environment]
|
[build.environment]
|
||||||
HUGO_VERSION = "0.46"
|
HUGO_VERSION = "0.46"
|
||||||
@@ -15,3 +17,8 @@ command = "hugo --enableGitInfo -b $DEPLOY_PRIME_URL"
|
|||||||
|
|
||||||
[context.branch-deploy]
|
[context.branch-deploy]
|
||||||
command = "hugo --enableGitInfo -b $DEPLOY_PRIME_URL"
|
command = "hugo --enableGitInfo -b $DEPLOY_PRIME_URL"
|
||||||
|
|
||||||
|
[context.master]
|
||||||
|
# This context is triggered by the master branch and allows search indexing
|
||||||
|
publish = "public"
|
||||||
|
command = "hugo"
|
||||||
|
|||||||
@@ -0,0 +1,3 @@
|
|||||||
|
# Prevent bots from indexing site
|
||||||
|
/*
|
||||||
|
X-Robots-Tag: noindex
|
||||||
Reference in New Issue
Block a user