From 5c53ef6e2fad35cc4916c94a7d914668026cdd78 Mon Sep 17 00:00:00 2001
From: Bud Parr <budparr@gmail.com>
Date: Sat, 15 Apr 2017 12:31:22 -0400
Subject: [PATCH] improve robots to use site param

---
 layouts/robots.txt | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/layouts/robots.txt b/layouts/robots.txt
index 6bbb8e2..b18c6e9 100644
--- a/layouts/robots.txt
+++ b/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: /