1
0
mirror of https://github.com/alanorth/hugo-theme-bootstrap4-blog.git synced 2024-06-09 13:25:07 +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:
Alan Orth 2016-09-21 22:37:39 +03:00
parent 92b95a2670
commit d6d94ff087
Signed by: alanorth
GPG Key ID: 0FB860CC9C45B1B9

3
layouts/robots.txt Normal file
View File

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