Revert the breaking change from 0.146.0 with dots in content filenames

Closes #13632
This commit is contained in:
Bjørn Erik Pedersen
2025-04-21 16:15:21 +02:00
parent 6d69dc88a4
commit 496730840e
8 changed files with 175 additions and 69 deletions

View File

@@ -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)

View File

@@ -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]

View File

@@ -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, ""},