afg-website/templates/shortcodes/lightbox.html
2024-05-11 13:51:37 +02:00

9 lines
285 B
HTML

{% set meta = get_image_metadata(path=image) %}
<a href="{{ get_url(path=image) }}"
class="lightbox"
data-pswp-width="{{ meta.width }}"
data-pswp-height="{{ meta.height }}"
target="_blank">
<img src="{{ get_url(path=image) }}" alt="{{alt}}" title="{{alt}}" />
</a>