mirror of
https://github.com/gohugoio/hugo.git
synced 2025-08-30 22:39:58 +02:00
Revert the breaking change from 0.146.0 with dots in content filenames
Closes #13632
This commit is contained in:
@@ -39,6 +39,8 @@ title: "Page"
|
||||
`)
|
||||
b.CreateSites().Build(BuildCfg{})
|
||||
|
||||
// b.H.TemplateStore.PrintDebug("", tplimpl.CategoryLayout, os.Stdout)
|
||||
|
||||
c.Assert(len(b.H.Sites), qt.Equals, 1)
|
||||
c.Assert(len(b.H.Sites[0].RegularPages()), qt.Equals, 2)
|
||||
|
||||
|
@@ -464,8 +464,6 @@ title: "Home"
|
||||
`
|
||||
b := Test(t, files)
|
||||
|
||||
// b.DebugPrint("", tplimpl.CategoryShortcode)
|
||||
|
||||
b.AssertFileContentExact("public/index.xml", "My shortcode XML.")
|
||||
b.AssertFileContentExact("public/index.html", "My shortcode HTML.")
|
||||
s := b.H.Sites[0]
|
||||
|
@@ -978,7 +978,7 @@ func TestRefLinking(t *testing.T) {
|
||||
{".", "", true, "/level2/level3/"},
|
||||
{"./", "", true, "/level2/level3/"},
|
||||
|
||||
{"embedded.dot.md", "", true, "/level2/level3/embedded/"},
|
||||
{"embedded.dot.md", "", true, "/level2/level3/embedded.dot/"},
|
||||
|
||||
// test empty link, as well as fragment only link
|
||||
{"", "", true, ""},
|
||||
|
Reference in New Issue
Block a user