mirror of https://github.com/theNewDynamic/gohugo-theme-ananke.git

James Henstridge
07.36.2022 5a8b531a7ce2f22eaa452ebab8325040982c9275
layouts/robots.txt
@@ -1,8 +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")  }}
{{/* robotstxt.org - if ENV production variable is false robots will be disallowed. */ -}}
{{ if eq (getenv "HUGO_ENV") "production" | or (eq .Site.Params.env "production")  -}}
Allow: /
Sitemap: {{.Site.BaseURL}}/sitemap.xml
{{ else }}
Sitemap: {{ "/sitemap.xml" | absURL }}
{{ else -}}
Disallow: /
{{ end }}
{{ end -}}