diff --git a/site/config.yaml b/site/config.yaml index 369c8432..825e5ebe 100644 --- a/site/config.yaml +++ b/site/config.yaml @@ -1,6 +1,7 @@ title: "Krew – kubectl plugin manager" baseURL: "https://krew.sigs.k8s.io/" languageCode: "en-us" +enableRobotsTXT: true disableKinds: - taxonomy - taxonomyTerm diff --git a/site/layouts/robots.txt b/site/layouts/robots.txt new file mode 100644 index 00000000..125876c4 --- /dev/null +++ b/site/layouts/robots.txt @@ -0,0 +1,4 @@ +User-agent: * +{{ if ne ( getenv "HUGO_ENV" ) "production" -}} +Disallow: / +{{- end -}}