layouts: use hugo.IsProduction
This commit is contained in:
parent
153740bbac
commit
bf79c208ae
3 changed files with 4 additions and 4 deletions
|
|
@ -1,5 +1,5 @@
|
|||
User-agent: *
|
||||
{{- if eq (getenv "HUGO_ENV") "production" | or (eq .Site.Params.env "production") }}
|
||||
{{- if hugo.IsProduction | or (eq .Site.Params.env "production") }}
|
||||
Disallow:
|
||||
{{- else }}
|
||||
Disallow: /
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue