mirror of
https://github.com/theNewDynamic/gohugo-theme-ananke.git
synced 2025-06-08 17:22:46 +00:00
fix : production should Allow and point to Sitemap
This commit is contained in:
parent
db9acdd991
commit
9f10a658bf
@ -1,7 +1,8 @@
|
|||||||
User-agent: *
|
User-agent: *
|
||||||
# robotstxt.org - if ENV production variable is false robots will be disallowed.
|
# robotstxt.org - if ENV production variable is false robots will be disallowed.
|
||||||
{{ if eq (getenv "HUGO_ENV") "production" | or (eq .Site.Params.env "production") }}
|
{{ if eq (getenv "HUGO_ENV") "production" | or (eq .Site.Params.env "production") }}
|
||||||
Disallow:
|
Allow: /
|
||||||
|
Sitemap: {{.Site.BaseURL}}/sitemap.xml
|
||||||
{{ else }}
|
{{ else }}
|
||||||
Disallow: /
|
Disallow: /
|
||||||
{{ end }}
|
{{ end }}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user