diff options
-rw-r--r-- | docs/layouts/robots.txt | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/docs/layouts/robots.txt b/docs/layouts/robots.txt index 271b4f1b7..b35d6583b 100644 --- a/docs/layouts/robots.txt +++ b/docs/layouts/robots.txt @@ -1,8 +1,8 @@ # www.robotstxt.org {{- $isProduction := eq hugo.Environment "production" -}} -{{- $isNetlify := eq (getenv "NETLIFY") "true" -}} -{{- $allowCrawling := and (not $isNetlify) $isProduction -}} +{{- $isCloudflarePages := eq (getenv "CF_PAGES") "1" -}} +{{- $allowCrawling := and (not $isCloudflarePages) $isProduction -}} {{ if $allowCrawling }} # Allow crawling of all content |