Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/jimfrenette/hugo-starter.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'layouts/robots.txt')
-rw-r--r--layouts/robots.txt7
1 files changed, 7 insertions, 0 deletions
diff --git a/layouts/robots.txt b/layouts/robots.txt
new file mode 100644
index 0000000..55af02b
--- /dev/null
+++ b/layouts/robots.txt
@@ -0,0 +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") }}
+Disallow:
+{{ else }}
+Disallow: /
+{{ end }}