diff options
author | Bjørn Erik Pedersen <bjorn.erik.pedersen@gmail.com> | 2024-02-20 10:02:42 +0100 |
---|---|---|
committer | Bjørn Erik Pedersen <bjorn.erik.pedersen@gmail.com> | 2024-02-20 11:17:44 +0100 |
commit | a118cb4138bc903566ade49a7789d91657898a21 (patch) | |
tree | b56c9415c42650e1e322acbf0eeb18c8c68fab6f /hugolib/robotstxt_test.go | |
parent | e8cc785a589bb18c9336880d662a659f29bb57f3 (diff) |
Fix robots.txt using the built-in template regression
Fixes #12071
Diffstat (limited to 'hugolib/robotstxt_test.go')
-rw-r--r-- | hugolib/robotstxt_test.go | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/hugolib/robotstxt_test.go b/hugolib/robotstxt_test.go index 2035c235f..c901ce662 100644 --- a/hugolib/robotstxt_test.go +++ b/hugolib/robotstxt_test.go @@ -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: *") +} |