I'm having some trouble with adding images to my blog articles on the Voog website builder. Basically, I'm trying to use the article's image on my blog page so that every listed article has its own specific background image.
The article's image URL is available as {{ article.image }}
, but this always returns the original image file, which results in a longer loading time and doesn't take into account the size of the element, which in my case is quite small (500px).
I guess I could use the replace filter to manually change every file URL to make it use a specific suffix: {{ article.image | replace: '.jpg', '_block.jpg' }}
, but this looks messy and I have to repeat it for every possible image extension.
Are there any better ways to achieve this?