![James Henstridge](/assets/img/avatar_default.png)
* layouts: use absURL to construct absolute URLs instead of concatenating with .Site.BaseURL * layouts: let hugo generate URLs to taxonomy terms * layouts: link to current language's home page in the site footer
9 lines
275 B
Plaintext
9 lines
275 B
Plaintext
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") -}}
|
|
Allow: /
|
|
Sitemap: {{ "/sitemap.xml" | absURL }}
|
|
{{ else -}}
|
|
Disallow: /
|
|
{{ end -}}
|