diff options
Diffstat (limited to 'layouts/robots.txt')
-rw-r--r-- | layouts/robots.txt | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/layouts/robots.txt b/layouts/robots.txt new file mode 100644 index 0000000..2ef7faa --- /dev/null +++ b/layouts/robots.txt @@ -0,0 +1,7 @@ +User-agent: * +{{ if eq (hugo.Environment) "production" -}} +Allow: / +{{ else -}} +Disallow: / +{{ end }} +Sitemap: {{ "sitemap.xml" | absLangURL -}} |