diff --git a/layouts/robots.txt b/layouts/robots.txt index c62953c4..5a6da974 100644 --- a/layouts/robots.txt +++ b/layouts/robots.txt @@ -1,4 +1,13 @@ +{{ if or (eq .Site.BaseURL "https://dev.cantorgymnasium.de/") (eq .Site.BaseURL "https://test.cantorgymnasium.de/") }} + +User-agent: * +Disallow: / + +{{ else }} + User-agent: * Disallow: /admin/ Sitemap: https://cantorgymnasium.de/sitemap.xml + +{{ end }} \ No newline at end of file