Hey!
I am trying to make a dynamic way to add images to a list. This is what I am trying to do.
{% for item in page.header.list %}
<div class="card">
=== Problem to fix ===
<img class="card-img-top img-fluid" src="{{ page.media['{{ item.image }}'].url }}" alt="Card image cap">
=== End of problem to fix ===
<div class="card-block">
<h4 class="card-title">{% if item.link %}<a href="{{ item.link }}">{% endif %}{{ item.title }}{% if item.link %}</a>{% endif %}</h4>
<p class="card-text">{{ item.text }}</p>
</div>
<ul class="list-group list-group-flush">
</ul>
</div>
{% endfor %}
But this does not work unfortunatly…
Is there a way to do this?