add dynamic robots.txt

This commit is contained in:
Denys Konovalov 2023-02-16 14:35:27 +01:00
parent 2ae3d5ffbc
commit 88a5c25394

@ -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: * User-agent: *
Disallow: /admin/ Disallow: /admin/
Sitemap: https://cantorgymnasium.de/sitemap.xml Sitemap: https://cantorgymnasium.de/sitemap.xml
{{ end }}