mirror of
https://github.com/theNewDynamic/gohugo-theme-ananke.git
synced 2025-06-09 01:32:45 +00:00
* Adds GetEnvironmentName and IsProduction partial functions, which improve DRY * Add prioritization for determining environment name, which favors the existing methods: the `HUGO_ENV` environment variable and site config `env` theme parameter * Adds `useHugoEnv` theme parameter to use the value of `.Hugo.Environment` for the build environment name
9 lines
233 B
Plaintext
9 lines
233 B
Plaintext
User-agent: *
|
|
# robotstxt.org - if the build is not configured for production, robots will be disallowed.
|
|
{{ if (partial "func/IsProduction.html" .) }}
|
|
Allow: /
|
|
Sitemap: {{.Site.BaseURL}}/sitemap.xml
|
|
{{ else }}
|
|
Disallow: /
|
|
{{ end }}
|