I have an “organically grown” content structure like the following:
section1.md
section1/section2/_index.md
section1/section2/section3/index.md
section1/section2/section3/image.png
Trying to show the image under section3
I would expect the following to work:

It does not (tested in various Hugo versions from current down to v0.130.0). What works is this:
![image][section2/section3/image.png]
I have two questions related to understanding the way resource paths work in future uses:
- why doesn’t the leaf bundle inside the
section3
know the image without a path? - why does it work using
section2/section3
as path, withoutsection1
involved?
Sidenote: I can’t just move section1.md inside the section1
folder as for instance _index.md
because that influences how section1/section2/_index.md
is built. Also, it’s not a “proper” list page and uses a layout template. Somehow, the _index.md
stops working when moving section1.md
in. It’s a card house. However, the way they are currently located, they use the layout files they are supposed to use.