{{ range resources.ByType "text" }}
{{ .Name }}
{{ end }}
Expected (v0.123.7) --> /snippets/a.txt (note that in v0.122.0 this returned snippets/a.txt -- no leading slash)
Actual (v0.123.8) --> a.txt
I believe the above is causing both of these to fail (resources are not published):
{{ with resources.ByType "text" }}
{{ with .Get "snippets/a.txt" }}
{{ .Publish }}
{{ end }}
{{ end }}
{{ with resources.Match "**" }}
{{ with .GetMatch "snippets/b.txt" }}
{{ .Publish }}
{{ end }}
{{ end }}
Worked (sort of) in v0.123.7. Fails in v0.123.8.
Related to https://github.com/gohugoio/hugo/issues/12190, but global assets are in subdirectory.
Expected (v0.123.7) -->
/snippets/a.txt
(note that in v0.122.0 this returnedsnippets/a.txt
-- no leading slash)Actual (v0.123.8) -->
a.txt
I believe the above is causing both of these to fail (resources are not published):