mirror of https://github.com/theNewDynamic/gohugo-theme-ananke.git

Bud Parr
15.31.2017 5c53ef6e2fad35cc4916c94a7d914668026cdd78
improve robots to use site param
1 files modified
2 ■■■ changed files
layouts/robots.txt 2 ●●● patch | view | raw | blame | history
layouts/robots.txt
@@ -1,6 +1,6 @@
User-agent: *
# 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:
{{ else }}
  Disallow: /