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

6 lines
257 B
HTML

<div class="single-image">
{% set img = record.attachments.images.get(this.url) %}
<img class="" src="{{ img|url|replace(".png","")|replace(".jpg","")|replace(".jpeg","")}}-medium.webp" alt="{{ this.caption }}">
<h4>{{this.caption}}</h4>
</div>