mirror of
https://github.com/gohugoio/hugo.git
synced 2025-08-17 21:01:26 +02:00
Add embeded template for robots.txt
This commit is contained in:
committed by
Bjørn Erik Pedersen
parent
7c5a1fd16b
commit
9a6dc6c791
@@ -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 {
|
||||
|
Reference in New Issue
Block a user