extratonal.org/templates/blocks/picture.html

8 lines
327 B
HTML
Raw Normal View History

2023-11-26 23:34:10 +01:00
<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>