Explorar el Código

improve robots to use site param

tags/v1.1
Bud Parr hace 8 años
padre
commit
5c53ef6e2f
No account linked to committer's email address
Se han modificado 1 ficheros con 1 adiciones y 1 borrados
  1. 1
    1
      layouts/robots.txt

+ 1
- 1
layouts/robots.txt Ver fichero

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: /

Cargando…
Cancelar
Guardar