Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Layout /tags/list.html panics on edit #14740

@bep

Description

@bep

See https://discourse.gohugo.io/t/hugo-panic-template-tags-list-html-not-parsed/56971

The following test panics:

// Issue 14740.
func TestEditTagsList(t *testing.T) {
	files := `
-- hugo.toml --
baseURL = "https://example.com"
-- layouts/tags/list.html --
Foo.
`

	b := hugolib.TestRunning(t, files)
	b.AssertFileContent("public/tags/index.html", "Foo.")
	b.EditFileReplaceAll("layouts/tags/list.html", "foo", "Bar").Build()
	b.AssertFileContent("public/tags/index.html", "Bar.")
}

OK, so the issue is editing the "legacy mapped" layout names that's also valid in the new setup ...

Metadata

Metadata

Assignees

Type

No type
No fields configured for issues without a type.

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions