From bfd7b70f4c0ecaa13ee1a8ce5de04c16ba7aa694 Mon Sep 17 00:00:00 2001 From: mtail Date: Tue, 19 Jun 2018 09:44:05 -0700 Subject: [PATCH] Disallow web crawling of the prelim site. --- layouts/robots.txt | 4 ++++ 1 file changed, 4 insertions(+) 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