I tried creating a /content/markets/index.md & /content/markets/images/the-image.jpg to replicate the way it works in the /articles/ section, but that generated a list page.
I’m pretty new to Hugo, it must be something obvious. Any leads?
To achieve what you want you have to use .Resources in your shortcode.
The image path will always be relative to your content organization without Page Bundles.
If for some reason you don’t want to use the above feature then you should either move your images under /static/ or execute a replaceRE function to remove the part of the path you don’t need.
Where I have a bunch of articles and just a few “standalone pages” that I’d like to appear adjacent to the Base URL structure e.g.: site-root/about/site-root/newsletter/
I can probably solve the relative resource problem, but as it stands by doing that I am getting a list.html template rendering at site-root/membership/.
This makes sense according to the documentation because I’ve effectively created a section.
So how to I collate my pages (and their respective images) that are direct children of the site’s base URL?
I’ve intentionally deployed them for the /articles section, but I don’t get how bundling pages and assets works at the root of /content/. I’ve read the (work in progress) documentation at that page a few times but it still doesn’t make sense to me.
If I’m bundling pages/resources at the root of /content do I need an /images/ DIR in there?
And will I need two different shortcodes for images - one for pages in my /articles, and one for the rest at root.
Sorry to be a bore but I haven’t quite figured it out 100%.
If the home page bundle cannot contain other content pages (per the doc) how do I organise my content such (a) I use bundles exclusively, and (b) I have a bunch of pages that are direct children of the base url e.g:
example.com/about/ example.com/membership/
I hope it’s not something really obvious I’m missing, but to the best of my knowledge that is not reflected in the DIR tree image above.