User-agent: * Disallow: /disclaimer/ Disallow: /partners/ Allow: / Allow: /contact/ Allow: /blog/ {{ range where .Site.RegularPages "Type" "blog" }} Allow: {{.RelPermalink}} {{end}} Sitemap: {{ .Sitemap.Filename | default "sitemap.xml" | absURL }}`
In layouts/robots.txt User-agent: * {{range .Pages}} Disallow: {{.RelPermalink}} {{end}}