I created a view and added three fields. A title, a link, and an image. When adding the image, I set the formatter as URL to image.
How do I rewrite my in my views so that each recipe can have the thumbnail as a background image instead?
In a way, each view row should be structured like this:
<article class="recipe" style="background-image: url({{ field_recipe_thumbnail }})">
<h1>{{ title }}</h1>
<p>{{ content }}</p>
</article>
Is there a way I can do this in my template? Note: The only question closed to mine that I found is here