aboutsummaryrefslogtreecommitdiffhomepage
path: root/hugolib/robotstxt_test.go
diff options
context:
space:
mode:
authorBjørn Erik Pedersen <[email protected]>2016-04-05 22:20:39 +0200
committerBjørn Erik Pedersen <[email protected]>2016-04-05 22:20:39 +0200
commit54750b078059734c3f2047ae3f56cac64a9f0666 (patch)
tree1c26f4b0534696268cac1a8485e96626222ba81f /hugolib/robotstxt_test.go
parent43b5dfabb5fb36bb4574289912c66a46ef20ffce (diff)
downloadhugo-54750b078059734c3f2047ae3f56cac64a9f0666.tar.gz
hugo-54750b078059734c3f2047ae3f56cac64a9f0666.zip
Do not create robots.txt by default
Meny people, including me, have a custom robots.txt in static. Also remove that option from the command line; it doesn't feel important enough. Fixes ##2049
Diffstat (limited to 'hugolib/robotstxt_test.go')
-rw-r--r--hugolib/robotstxt_test.go1
1 files changed, 1 insertions, 0 deletions
diff --git a/hugolib/robotstxt_test.go b/hugolib/robotstxt_test.go
index b0a843a7e..b88d2243b 100644
--- a/hugolib/robotstxt_test.go
+++ b/hugolib/robotstxt_test.go
@@ -36,6 +36,7 @@ func TestRobotsTXTOutput(t *testing.T) {
hugofs.InitMemFs()
viper.Set("baseurl", "http://auth/bub/")
+ viper.Set("enableRobotsTXT", true)
s := &Site{
Source: &source.InMemorySource{ByteSource: WEIGHTED_SOURCES},