diff --git a/layouts/robots.txt b/layouts/robots.txt index a7b329781f..68c35b7faf 100644 --- a/layouts/robots.txt +++ b/layouts/robots.txt @@ -1,3 +1,7 @@ User-agent: * +{{ if .Site.Data.args.preliminary }} +Disallow: / +{{ else }} Disallow: +{{ end }} Sitemap: {{ .Site.BaseURL }}/sitemap.xml