summaryrefslogtreecommitdiffstats
path: root/hugolib/disableKinds_test.go
diff options
context:
space:
mode:
authorBjørn Erik Pedersen <bjorn.erik.pedersen@gmail.com>2020-02-19 08:38:46 +0100
committerBjørn Erik Pedersen <bjorn.erik.pedersen@gmail.com>2020-02-19 09:08:31 +0100
commitda54787cfa97789624e467a4451dfeb50f563e41 (patch)
treea9b7725cb444e485b94845b09707e00c3918e0c6 /hugolib/disableKinds_test.go
parentc7975b48b6532823868a6aa8c93eb76caa46c570 (diff)
Handle disabled RSS even if it's defined in outputs
See https://github.com/gohugoio/hugo/issues/6897#issuecomment-587947078
Diffstat (limited to 'hugolib/disableKinds_test.go')
-rw-r--r--hugolib/disableKinds_test.go15
1 files changed, 15 insertions, 0 deletions
diff --git a/hugolib/disableKinds_test.go b/hugolib/disableKinds_test.go
index f5b2c65a1..e814f4a5a 100644
--- a/hugolib/disableKinds_test.go
+++ b/hugolib/disableKinds_test.go
@@ -266,3 +266,18 @@ headless: true
b.Assert(resource.RelPermalink(), qt.Equals, "/blog/sect/no-publishresources/data.json")
})
}
+
+// https://github.com/gohugoio/hugo/issues/6897#issuecomment-587947078
+func TestDisableRSSWithRSSInCustomOutputs(t *testing.T) {
+ b := newTestSitesBuilder(t).WithConfigFile("toml", `
+disableKinds = ["taxonomy", "taxonomyTerm", "RSS"]
+[outputs]
+home = [ "HTML", "RSS" ]
+`).Build(BuildCfg{})
+
+ // The config above is a little conflicting, but it exists in the real world.
+ // In Hugo 0.65 we consolidated the code paths and made RSS a pure output format,
+ // but we should make sure to not break existing sites.
+ b.Assert(b.CheckExists("public/index.xml"), qt.Equals, false)
+
+}