diff options
author | gabrielgio <gabriel.giovanini@pm.me> | 2020-07-11 22:35:14 +0200 |
---|---|---|
committer | gabrielgio <gabriel.giovanini@pm.me> | 2020-07-11 22:35:14 +0200 |
commit | 60fe49ea3af38d4a7d5e8de1cdb72887b167b22d (patch) | |
tree | bb05011c311b74c7c7676b7b689bbbc2c8546c9a /themes/ananke/layouts/robots.txt | |
parent | 60b4299cb90a5b3f6e74ffd0ee0f51a0008fb3cf (diff) | |
download | gabrielgio.me-60fe49ea3af38d4a7d5e8de1cdb72887b167b22d.tar.gz gabrielgio.me-60fe49ea3af38d4a7d5e8de1cdb72887b167b22d.tar.bz2 gabrielgio.me-60fe49ea3af38d4a7d5e8de1cdb72887b167b22d.zip |
Moving from jekyll to hugo
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 }} |