mirror of
https://github.com/gmemstr/blog.gabrielsimmer.com.git
synced 2024-09-20 04:01:09 +01:00
c8ed961e17
Still some work to do, but basic content is here.
9 lines
262 B
Plaintext
9 lines
262 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: {{.Site.BaseURL}}/sitemap.xml
|
|
{{ else }}
|
|
Disallow: /
|
|
{{ end }}
|