I recognize this is probably a common question, but I really can’t figure out the right things to search and I fear it might be different from theme to theme.
My directory looks like this:
The engineering is the branch, and example_1 and example_2 are “leaves” and are page bundles.
Currently, the engineering page lists examples 1 and 2, but only their titles, not the images.
I think I would add an image by specifying a parameter at the top of index.md for each of example 1 and 2, but from there I don’t know how to access the parameter properly.
What I’ve tried:
I’m using the congo theme, and I figured out that the branch code that lists the leaf pages is here:
That renders this partial for each article:
I believe I need to insert an image tag at line 2
I tried adding the following code:
{{ with .Params.coverphoto }}
<div>
<img src="{{ . }}" class="h-auto" alt="..." />
</div>
{{ end }}
But {{ . }} is just the file name of the image, and I’m not sure if passing the full path would change anything anyway. I don’t want to put my images in static, that would kind of defeat the purpose of a page bundle.