-
-
Notifications
You must be signed in to change notification settings - Fork 8.2k
Closed
Labels
Description
I'm. not sure what happens, but I have a test site that looks similar to the one below, a test that I would expect to pass.
func TestSitesMatrixVersionsEditTemplate(t *testing.T) {
files := `
-- hugo.toml --
defaultcontentVersion = "v1"
defaultcontentVersionInSubDir = true
[versions]
[versions."v1"]
[versions."v2"]
-- layouts/all.html --
Version: {{ .Site.Version.Name }}|
`
b := hugolib.TestRunning(t, files)
b.AssertFileContent("public/v1/index.html", "Version: v1|")
b.EditFileReplaceAll("layouts/all.html", "Version:", "Edited version:").Build()
b.AssertFileContent("public/v1/index.html", "Edited version: v1|")
}