mirror of
https://github.com/gohugoio/hugo.git
synced 2025-08-21 21:35:28 +02:00
@@ -39,3 +39,16 @@ func TestRobotsTXTOutput(t *testing.T) {
|
||||
|
||||
b.AssertFileContent("public/robots.txt", "User-agent: Googlebot")
|
||||
}
|
||||
|
||||
func TestRobotsTXTDefaultTemplate(t *testing.T) {
|
||||
t.Parallel()
|
||||
files := `
|
||||
-- hugo.toml --
|
||||
baseURL = "http://auth/bub/"
|
||||
enableRobotsTXT = true
|
||||
`
|
||||
|
||||
b := Test(t, files)
|
||||
|
||||
b.AssertFileContent("public/robots.txt", "User-agent: *")
|
||||
}
|
||||
|
Reference in New Issue
Block a user