[news feed] Fixed multiple images layout

Signed-off-by: Alexander Borsuk <me@alex.bio>
This commit is contained in:
Alexander Borsuk 2022-12-24 00:23:01 +01:00
parent dd22d02e61
commit bc4a4e3609

View file

@ -37,9 +37,13 @@
{% if page.content %}
<div class="news_content">{{ page.content | safe }}</div>
{% endif %}
<span class="news_images">
{% for photo in page.assets %}
<img class="news_image" src="{{ page.path }}/{{ photo | split(pat='/') | last }}" />
{% endfor %}
</span>
</div>
{% endfor %}
{% endfor %}