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

Patrick Kollitsch
21.01.2024 cc6da237ea3e659a19be8faaa0f365898b5b878f
layouts/robots.txt
@@ -1,6 +1,6 @@
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 we are in production, allow access, else deny */ -}}
{{ if hugo.IsProduction -}}
Allow: /
Sitemap: {{ "/sitemap.xml" | absURL }}
{{ else -}}