1
0
mirror of https://github.com/alanorth/hugo-theme-bootstrap4-blog.git synced 2025-05-07 21:16:00 +02:00

Add robots.txt template

Advertises the XML sitemap and allows all user agents, but is only
enabled if the site sets this property in their config:

  enableRobotsTXT = true

See: https://gohugo.io/extras/robots-txt/
This commit is contained in:
2016-09-21 22:37:39 +03:00
parent 92b95a2670
commit d6d94ff087

3
layouts/robots.txt Normal file
View File

@ -0,0 +1,3 @@
Sitemap: {{ .Site.BaseURL }}sitemap.xml
User-agent: *