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

github.com/budparr/gohugo-theme-ananke.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorzar3bski <zarebskidavid@gmail.com>2021-03-09 23:40:16 +0300
committerGitHub <noreply@github.com>2021-03-09 23:40:16 +0300
commit8845854aa9ab5af79066e840d8c884fbbb8a269d (patch)
tree48366d1e40ed6fbe784a4c3c7912d050dba83f19
parentdb9acdd991d96953b09d50b8e098939394804313 (diff)
fix : production should Allow and point to Sitemap (#404)
-rw-r--r--layouts/robots.txt5
1 files changed, 3 insertions, 2 deletions
diff --git a/layouts/robots.txt b/layouts/robots.txt
index b18c6e9..7a24e82 100644
--- a/layouts/robots.txt
+++ b/layouts/robots.txt
@@ -1,7 +1,8 @@
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:
+Allow: /
+Sitemap: {{.Site.BaseURL}}/sitemap.xml
{{ else }}
- Disallow: /
+Disallow: /
{{ end }}