Answers for "Hugo Robots.txt template"

Go
0

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 }}`
Posted by: Guest on June-17-2020
-1

Hugo Robots.txt template

In layouts/robots.txt

User-agent: *

{{range .Pages}}
Disallow: {{.RelPermalink}}
{{end}}
Posted by: Guest on June-17-2020

Browse Popular Code Answers by Language