extratonal.org/templates/blocks/picture.html
2023-11-26 23:34:10 +01:00

8 lines
327 B
HTML

<div class="carousel-item item">
{% set img = record.attachments.images.get(this.url) %}
<img class="" src="{{ img|url|replace(".png","")|replace(".jpg","")|replace(".jpeg","")}}-medium.webp" alt="{{ this.caption }}">
<div class="carousel-caption d-none d-md-block">
<h3>{{this.caption}}</h3>
</div>
</div>