diff options
author | Dimitri Staessens <dimitri@ouroboros.rocks> | 2019-06-19 21:18:55 +0200 |
---|---|---|
committer | Dimitri Staessens <dimitri@ouroboros.rocks> | 2019-06-19 21:18:55 +0200 |
commit | 615d2211463e073a65b0de60c61ab1184b14b958 (patch) | |
tree | a7635aec59a689152061c00e8a462382112792f4 /themes/ananke/layouts/robots.txt | |
parent | 2a2311ea3fb1b89a266668bfd16aa96475fc183e (diff) | |
download | website-615d2211463e073a65b0de60c61ab1184b14b958.tar.gz website-615d2211463e073a65b0de60c61ab1184b14b958.zip |
theme: Switch to ananke theme
Diffstat (limited to 'themes/ananke/layouts/robots.txt')
-rw-r--r-- | themes/ananke/layouts/robots.txt | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/themes/ananke/layouts/robots.txt b/themes/ananke/layouts/robots.txt new file mode 100644 index 0000000..b18c6e9 --- /dev/null +++ b/themes/ananke/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 }} |