1
0
mirror of https://github.com/twbs/bootstrap.git synced 2025-09-03 02:13:01 +02:00

Switch to using hugo.IsProduction (#39763)

This commit is contained in:
XhmikosR
2024-03-08 12:41:17 +02:00
committed by GitHub
parent f545964f8f
commit 930740afbc
4 changed files with 6 additions and 7 deletions

View File

@@ -1,8 +1,7 @@
# www.robotstxt.org
{{- $isProduction := eq hugo.Environment "production" -}}
{{- $isNetlify := eq (getenv "NETLIFY") "true" -}}
{{- $allowCrawling := and (not $isNetlify) $isProduction -}}
{{- $allowCrawling := and (not $isNetlify) hugo.IsProduction -}}
{{ if $allowCrawling }}
# Allow crawling of all content