mirror of
https://github.com/gohugoio/hugo.git
synced 2025-08-17 21:01:26 +02:00
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
This commit is contained in:
@@ -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},
|
||||
|
Reference in New Issue
Block a user