Hi,
I have a problem with dispalying an image. Image is in the same folder as feature.md file.
The code in the header of feature.md is:
—
title: ‘some title’
cache_enable: false
features:
-
header: ‘some header’
text: ‘some text’
image: wykres.png
-
header: ‘anotherheader’
text: ‘another text’
image: wykres.png
—
And this is code from my modular template file features.html.twig:
{{ content }}
<div class="feature-items">
{% for feature in page.header.features %}
<div class="feature">
{% if feature.icon %}
<i class="fa fa-fw fa-{{ feature.icon }}"></i>
<div class="feature-content icon-offset">
{% else %}
<div class="feature-content">
{% endif %}
{% if feature.header %}
<h4>{{ feature.header }}</h4>
{% endif %}
{% if feature.text %}
<p>{{ feature.text }}</p>
{% endif %}
{% if feature.image %}
<img src="{{ feature.image }}" alt="" width="100" height="100">
{% endif %}
</div>
</div>
{% endfor %}
</div>
</div>
and as a result I get only alt text instead of image, what might be a problem?