I am trying to define three filenames to be included in a slider.
Filenames are defined in the page as:
---
slide1: myimage1.png
slide2: myimage2.png
slide3: myimage3.png
---
And in the Twig template I would like to get something as:
<img src="{{ page.media[slide1].url }}" alt="MyPassion" />
<img src="{{ page.media[slide2].url }}" alt="MyPassion" />
<img src="{{ page.media[slide3].url }}" alt="MyPassion" />
But I am not being able to get the src properly filled.
Could someone help me to understand how to use a variable in a <img> inside a Twig template.



