summaryrefslogtreecommitdiffstats
path: root/hugolib/taxonomy_test.go
diff options
context:
space:
mode:
authorBjørn Erik Pedersen <bjorn.erik.pedersen@gmail.com>2018-12-29 10:00:17 +0100
committerBjørn Erik Pedersen <bjorn.erik.pedersen@gmail.com>2018-12-29 10:00:17 +0100
commit65fa0692712b4c62b48b3a537b74cdd904e95246 (patch)
treedffeb728a5bd2217c49f8cf7438eed79d135b412 /hugolib/taxonomy_test.go
parent9e4f9e0bb69276e9bca0dfbdbc7aefbf5f6fc9e5 (diff)
Revert "hugolib: Restore taxonomy term path separation"
See #5571 This reverts commit 9ce0a1fb7011bd75eb0e2262e35354c49ce98ac5.
Diffstat (limited to 'hugolib/taxonomy_test.go')
-rw-r--r--hugolib/taxonomy_test.go41
1 files changed, 0 insertions, 41 deletions
diff --git a/hugolib/taxonomy_test.go b/hugolib/taxonomy_test.go
index 6304e4f2d..ec55dc428 100644
--- a/hugolib/taxonomy_test.go
+++ b/hugolib/taxonomy_test.go
@@ -243,44 +243,3 @@ subcats:
th.assertFileContent(pathFunc("public/empties/index.html"), "Terms List", "Empties")
}
-
-// https://github.com/gohugoio/hugo/issues/5513
-func TestTaxonomyPathSeparation(t *testing.T) {
- t.Parallel()
-
- config := `
-baseURL = "https://example.com"
-
-[taxonomies]
-"news/tag" = "news/tags"
-"news/category" = "news/categories"
-`
-
- pageContent := `
-+++
-title = "foo"
-"news/categories" = ["a", "b", "c"]
-+++
-
-Content.
-
-
-`
-
- b := newTestSitesBuilder(t)
- b.WithConfigFile("toml", config)
- b.WithContent("page.md", pageContent)
- b.WithContent("news/categories/b/_index.md", `
----
-title: "This is B"
----
-
-`)
-
- b.CreateSites().Build(BuildCfg{})
-
- b.AssertFileContent("public/news/categories/index.html", "Taxonomy Term Page 1|News/Categories|Hello|https://example.com/news/categories/|")
- b.AssertFileContent("public/news/categories/a/index.html", "Taxonomy List Page 1|A|Hello|https://example.com/news/categories/a/|")
- b.AssertFileContent("public/news/categories/b/index.html", "Taxonomy List Page 1|This is B|Hello|https://example.com/news/categories/b/|")
-
-}