mirror of
https://github.com/theNewDynamic/gohugo-theme-ananke.git
synced 2025-04-21 14:12:45 +00:00
improve robots to use site param
This commit is contained in:
parent
5dc9b52c67
commit
5c53ef6e2f
@ -1,6 +1,6 @@
|
|||||||
User-agent: *
|
User-agent: *
|
||||||
# robotstxt.org - if ENV production variable is false robots will be disallowed.
|
# robotstxt.org - if ENV production variable is false robots will be disallowed.
|
||||||
{{ if eq (getenv "HUGO_ENV") "production" }}
|
{{ if eq (getenv "HUGO_ENV") "production" | or (eq .Site.Params.env "production") }}
|
||||||
Disallow:
|
Disallow:
|
||||||
{{ else }}
|
{{ else }}
|
||||||
Disallow: /
|
Disallow: /
|
||||||
|
Loading…
x
Reference in New Issue
Block a user