script to fix anubis

This commit is contained in:
Bel LaPointe
2021-11-29 15:25:43 -07:00
parent 7ee21a8e3f
commit 6efca3bc62
38 changed files with 80 additions and 44 deletions

View File

@@ -1,7 +1,7 @@
User-agent: *
# robotstxt.org - if ENV production variable is false robots will be disallowed.
{{ if eq (getenv "HUGO_ENV") "production" | or (eq .Site.Params.env "production") }}
# robotstxt.org - if environment is not `production` then robots will be disallowed.
{{ if hugo.IsProduction }}
Disallow:
{{ else }}
Disallow: /
{{ end }}
{{ end }}