Skip to content

Server rebuild issue with dimensions #14461

@bep

Description

@bep

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|")
}

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions