mirror of
https://github.com/gohugoio/hugo.git
synced 2025-04-29 07:00:31 +03:00
Add embeded template for robots.txt
This commit is contained in:
parent
7c5a1fd16b
commit
9a6dc6c791
9 changed files with 143 additions and 2 deletions
|
@ -68,6 +68,10 @@ func TestSitemapOutput(t *testing.T) {
|
|||
t.Fatalf("Unable to RenderSitemap: %s", err)
|
||||
}
|
||||
|
||||
if err := s.RenderRobotsTXT(); err != nil {
|
||||
t.Fatalf("Unable to RenderRobotsTXT :%s", err)
|
||||
}
|
||||
|
||||
sitemapFile, err := hugofs.DestinationFS.Open("sitemap.xml")
|
||||
|
||||
if err != nil {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue