i am building my site with the blog skeleton.
now i'm in the process of customizing the antimatter theme.
i've changed the header (no more .js) and now i'm having difficulties telling the site to use a specific header image.
i would like to define the name of the image in blog.md, maybe like this: banner_img: banner.jpg, and then use the variable (??.banner_img.??) in base.html.twig
- however all pages would have to be able to find it form the blog's root. right now they are choosing images from the current page's folder.
what i tried:
page.find('/blog').media.images|first- i have no control over which image gets chosen, other than renaming the images.
alternatively, i would like some twig syntax that would allow me to search that particular folder for, say, images starting with bg, and choose the first from that, but the starts_with filter only returns true or false...