Sameh Hakim
0
Q:

Hugo Robots.txt template

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 }}`
0
In layouts/robots.txt

User-agent: *

{{range .Pages}}
Disallow: {{.RelPermalink}}
{{end}}
-1

New to Communities?

Join the community