Fix resource name in resources.ByType

Fixes #12190
This commit is contained in:
Bjørn Erik Pedersen
2024-03-07 09:00:44 +01:00
parent 4d5e173cf8
commit a4b17470a8
3 changed files with 7 additions and 4 deletions

View File

@@ -155,6 +155,7 @@ I am a.txt
-- assets/b.txt --
I am b.txt
-- layouts/index.html --
Home.
{{ with resources.ByType "text" }}
{{ with .Get "a.txt" }}
{{ .Publish }}
@@ -167,7 +168,6 @@ I am b.txt
b := hugolib.Test(t, files)
b.AssertFileExists("public/index.html", true)
b.AssertFileExists("public/a.txt", true) // failing test
b.AssertFileExists("public/b.txt", true) // failing test
}